diff options
author | Philip Withnall <pwithnall@endlessos.org> | 2021-10-26 23:24:52 +0100 |
---|---|---|
committer | Philip Withnall <pwithnall@endlessos.org> | 2021-10-26 23:24:52 +0100 |
commit | 8ff02c0e5b0c2105e1b26a1a00ec264f6482ce3e (patch) | |
tree | 084b1d60616ff1acc63b9a54b4fd621a2a21d347 | |
parent | d870def5aaa60a988a74c818fa142c70529218e2 (diff) | |
download | flatpak-8ff02c0e5b0c2105e1b26a1a00ec264f6482ce3e.tar.gz |
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>
-rw-r--r-- | common/flatpak-utils-http.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/flatpak-utils-http.c b/common/flatpak-utils-http.c index 3d144051..2ba18d5c 100644 --- a/common/flatpak-utils-http.c +++ b/common/flatpak-utils-http.c @@ -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); |