diff --git a/websocket/src/websocket.cpp b/websocket/src/websocket.cpp index 0e07edf..b67582a 100644 --- a/websocket/src/websocket.cpp +++ b/websocket/src/websocket.cpp @@ -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)