Index: Source/modules/websockets/WebSocket.cpp |
diff --git a/Source/modules/websockets/WebSocket.cpp b/Source/modules/websockets/WebSocket.cpp |
index 9016a538928649449bae969c589595524b5a0b9d..3c274a830cc8b3f88f7ce4acefe43f3e1a7b6057 100644 |
--- a/Source/modules/websockets/WebSocket.cpp |
+++ b/Source/modules/websockets/WebSocket.cpp |
@@ -505,6 +505,7 @@ void WebSocket::stop() |
return; |
} |
if (m_channel) { |
+ m_channel->close(WebSocketChannel::CloseEventCodeGoingAway, String()); |
m_channel->disconnect(); |
m_channel = 0; |
} |