mirror of
https://github.com/defold/extension-websocket.git
synced 2025-06-27 01:47:42 +02:00
close socket when destroying websocket connection instead of returning it back to connection pool (#32)
This commit is contained in:
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user