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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -221,7 +221,7 @@ static void DestroyConnection(WebsocketConnection* conn)
} }
#else #else
if (conn->m_Connection) if (conn->m_Connection)
dmConnectionPool::Return(g_Websocket.m_Pool, conn->m_Connection); dmConnectionPool::Close(g_Websocket.m_Pool, conn->m_Connection);
#endif #endif
if (conn->m_HandshakeResponse) if (conn->m_HandshakeResponse)