summaryrefslogtreecommitdiff
path: root/libsoup/http2
diff options
context:
space:
mode:
Diffstat (limited to 'libsoup/http2')
-rw-r--r--libsoup/http2/soup-client-message-io-http2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsoup/http2/soup-client-message-io-http2.c b/libsoup/http2/soup-client-message-io-http2.c
index e7a90e5d..231d7c16 100644
--- a/libsoup/http2/soup-client-message-io-http2.c
+++ b/libsoup/http2/soup-client-message-io-http2.c
@@ -1044,7 +1044,7 @@ soup_client_message_io_http2_is_reusable (SoupClientMessageIO *iface)
{
SoupClientMessageIOHTTP2 *io = (SoupClientMessageIOHTTP2 *)iface;
- if (!nghttp2_session_want_write (io->session) && !nghttp2_session_want_read (io->session))
+ if (!nghttp2_session_check_request_allowed (io->session))
return FALSE;
return !io->is_shutdown;