[libsoup/libsoup-3-0] http2: mark IO as shutting down before processing async pending messages
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/libsoup-3-0] http2: mark IO as shutting down before processing async pending messages
- Date: Fri, 2 Sep 2022 10:20:31 +0000 (UTC)
commit ea3308a6c10d68b018e1352d08f2325e95e43baf
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Mon Aug 29 11:35:38 2022 +0200
http2: mark IO as shutting down before processing async pending messages
libsoup/http2/soup-client-message-io-http2.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libsoup/http2/soup-client-message-io-http2.c b/libsoup/http2/soup-client-message-io-http2.c
index 68fb97c1..8b597362 100644
--- a/libsoup/http2/soup-client-message-io-http2.c
+++ b/libsoup/http2/soup-client-message-io-http2.c
@@ -508,6 +508,8 @@ io_read_ready (GObject *stream,
return G_SOURCE_CONTINUE;
}
+ io->is_shutdown = TRUE;
+
if (error) {
set_io_error (io, error);
g_list_foreach (io->pending_io_messages,
@@ -515,8 +517,6 @@ io_read_ready (GObject *stream,
NULL);
}
- io->is_shutdown = TRUE;
-
g_clear_pointer (&io->read_source, g_source_unref);
if (io->conn)
soup_connection_set_in_use (io->conn, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]