Skip to content

Commit 7d3e814

Browse files
committed
Update websocket.cpp
1 parent b8f0cb0 commit 7d3e814

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

websocket/src/websocket.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,7 @@ static void DestroyConnection(WebsocketConnection* conn)
412412
free((void*)conn->m_Protocol);
413413

414414
if (conn->m_Callback)
415-
{
416415
dmScript::DestroyCallback(conn->m_Callback);
417-
}
418416

419417
#if defined(__EMSCRIPTEN__)
420418
if (conn->m_WS)
@@ -423,15 +421,11 @@ static void DestroyConnection(WebsocketConnection* conn)
423421
}
424422
#else
425423
if (conn->m_Connection)
426-
{
427424
dmConnectionPool::Close(g_Websocket.m_Pool, conn->m_Connection);
428-
}
429425
#endif
430426

431427
if (conn->m_HandshakeResponse)
432-
{
433428
delete conn->m_HandshakeResponse;
434-
}
435429

436430
free((void*)conn->m_Buffer);
437431
}

0 commit comments

Comments
 (0)