[libsoup/return-if-client_io-is-null: 2/2] Disconnect signal handler in 'request_body_stream_wrote_data_cb'
- From: Diego Pino <dpino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/return-if-client_io-is-null: 2/2] Disconnect signal handler in 'request_body_stream_wrote_data_cb'
- Date: Thu, 13 May 2021 06:56:08 +0000 (UTC)
commit 698e3ecbb2615cab18feb7773b136cb07becc810
Author: Diego Pino Garcia <dpino igalia com>
Date: Thu May 13 14:53:37 2021 +0800
Disconnect signal handler in 'request_body_stream_wrote_data_cb'
libsoup/soup-client-message-io-http1.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/libsoup/soup-client-message-io-http1.c b/libsoup/soup-client-message-io-http1.c
index 67f3da3c..3a7c57f7 100644
--- a/libsoup/soup-client-message-io-http1.c
+++ b/libsoup/soup-client-message-io-http1.c
@@ -135,6 +135,10 @@ request_body_stream_wrote_data_cb (SoupMessage *msg,
if (!is_metadata)
soup_message_wrote_body_data (msg, count);
+
+ SoupConnection* conn = soup_message_get_connection (msg);
+ if (conn)
+ g_signal_handlers_disconnect_by_data (conn, msg);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]