flatpak-utils-http: Ensure to wake up the main context on error

All the other code paths which set `data->done` or `data->error` ensure
to wake up the main context so its loop exit conditions can be checked
again — this code path was missing a wakeup though.

Spotted by code inspection; I haven’t hit this in the wild.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
(cherry picked from commit 8ff02c0e5b)
This commit is contained in:
Philip Withnall
2021-10-26 23:24:52 +01:00
committed by Phaedrus Leeds
parent ff0f5a15b2
commit 369d922d2c

View File

@@ -503,7 +503,10 @@ load_uri_callback (GObject *source_object,
if (!glnx_open_tmpfile_linkable_at (data->out_tmpfile_parent_dfd, ".",
O_WRONLY, data->out_tmpfile,
&data->error))
return;
{
g_main_context_wakeup (data->context);
return;
}
g_assert (data->out == NULL);