mirror of
https://github.com/defold/extension-websocket.git
synced 2025-09-27 07:52:18 +02:00
close socket when destroying websocket connection instead of returning it back to connection pool (#32)
This commit is contained in:
committed by
GitHub
parent
7346f142fa
commit
b3afb9a276
@@ -221,7 +221,7 @@ static void DestroyConnection(WebsocketConnection* conn)
|
||||
}
|
||||
#else
|
||||
if (conn->m_Connection)
|
||||
dmConnectionPool::Return(g_Websocket.m_Pool, conn->m_Connection);
|
||||
dmConnectionPool::Close(g_Websocket.m_Pool, conn->m_Connection);
|
||||
#endif
|
||||
|
||||
if (conn->m_HandshakeResponse)
|
||||
|
Reference in New Issue
Block a user