summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2019-07-12 14:25:04 +0200
committerClaudio Saavedra <csaavedra@igalia.com>2020-12-11 16:43:22 +0200
commitcf55b982c49ef1710f4ec2e5b5a90f7b146ce351 (patch)
treef780423e23e53e8b88c452b16ae9e0f1142a63b9
parent4401bd7b04705b5ea6744c36f9c5f24f78219d8d (diff)
downloadlibsoup-cf55b982c49ef1710f4ec2e5b5a90f7b146ce351.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 03647413..b30fddf2 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);