close socket when destroying websocket connection instead of returning it back to connection pool (#32)

This commit is contained in:
Alexander Palagin
2021-02-10 09:49:23 +02:00
committed by GitHub
parent 7346f142fa
commit b3afb9a276

View File

@@ -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)