[libsoup] io-http2: do not try to poll for sync requests
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] io-http2: do not try to poll for sync requests
- Date: Thu, 27 May 2021 17:17:21 +0000 (UTC)
commit 663be1d909d30a384e9166f42ea3929354247eeb
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Thu May 27 19:16:49 2021 +0200
io-http2: do not try to poll for sync requests
libsoup/http2/soup-client-message-io-http2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libsoup/http2/soup-client-message-io-http2.c b/libsoup/http2/soup-client-message-io-http2.c
index 5f581fb9..e7695b0c 100644
--- a/libsoup/http2/soup-client-message-io-http2.c
+++ b/libsoup/http2/soup-client-message-io-http2.c
@@ -604,7 +604,7 @@ on_stream_close_callback (nghttp2_session *session,
if (error_code == NGHTTP2_REFUSED_STREAM && data->state < STATE_READ_DATA)
data->can_be_restarted = TRUE;
- if (data->state < STATE_READ_DATA && !data->in_run_until_read_async) {
+ if (data->state < STATE_READ_DATA && data->task && !data->in_run_until_read_async) {
/* Start polling the decoded data stream instead of the network input stream. */
if (data->io_source) {
g_source_destroy (data->io_source);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]