summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2019-07-12 14:25:04 +0200
committerCarlos Garcia Campos <carlosgc@gnome.org>2019-07-12 14:34:32 +0200
commit4ab18e3462797b09bcc2d58a82d3a5c9d49b3bec (patch)
tree0840fc6265ab3d4784820f9db4fe904029a5d76a
parent74866bba801494941bba7a252b7fbfbdff9bbabf (diff)
downloadlibsoup-4ab18e3462797b09bcc2d58a82d3a5c9d49b3bec.tar.gz
WebSockets: client should also mark the close frame as SOUP_WEBSOCKET_QUEUE_LAST
When close message was already received from the server.
-rw-r--r--libsoup/soup-websocket-connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsoup/soup-websocket-connection.c b/libsoup/soup-websocket-connection.c
index b45543f5..94ef52a4 100644
--- a/libsoup/soup-websocket-connection.c
+++ b/libsoup/soup-websocket-connection.c
@@ -674,7 +674,7 @@ close_connection (SoupWebsocketConnection *self,
g_debug ("responding to close request");
flags = 0;
- if (pv->connection_type == SOUP_WEBSOCKET_CONNECTION_SERVER && pv->close_received)
+ if (pv->close_received)
flags |= SOUP_WEBSOCKET_QUEUE_LAST;
send_close (self, flags, code, data);
close_io_after_timeout (self);