tests/unix-streams: Free the cancelled error on cancelled cancellable

Helps with: https://gitlab.gnome.org/GNOME/glib/-/issues/333
This commit is contained in:
Marco Trevisan (Treviño) 2022-09-13 16:29:20 +02:00
parent 0d823aa926
commit d40ef833e3

View File

@ -147,6 +147,7 @@ main_thread_skipped (GObject *source, GAsyncResult *res, gpointer user_data)
if (g_cancellable_is_cancelled (main_cancel))
{
do_main_cancel (out);
g_clear_error (&err);
return;
}