Loading src/event/iocp.cpp +2 −2 Changes for src/event/iocp.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -105,13 +105,13 @@ namespace netplus { } void RemoveFromClientList(client* pClientContext) { std::lock_guard<std::mutex> lock(g_ClientContextMutex); std::lock<std::mutex>(g_ClientContextMutex,pClientContext->cltmtx); auto it = std::find(g_ClientContext.begin(), g_ClientContext.end(), pClientContext); if (it != g_ClientContext.end()) { pClientContext->cltmtx.lock(); g_ClientContext.erase(it); delete pClientContext; } g_ClientContextMutex.unlock(); } void AcceptConnection(LPFN_ACCEPTEX lpfnAcceptEx, int tid, ULONG_PTR args) { Loading Loading
src/event/iocp.cpp +2 −2 Changes for src/event/iocp.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -105,13 +105,13 @@ namespace netplus { } void RemoveFromClientList(client* pClientContext) { std::lock_guard<std::mutex> lock(g_ClientContextMutex); std::lock<std::mutex>(g_ClientContextMutex,pClientContext->cltmtx); auto it = std::find(g_ClientContext.begin(), g_ClientContext.end(), pClientContext); if (it != g_ClientContext.end()) { pClientContext->cltmtx.lock(); g_ClientContext.erase(it); delete pClientContext; } g_ClientContextMutex.unlock(); } void AcceptConnection(LPFN_ACCEPTEX lpfnAcceptEx, int tid, ULONG_PTR args) { Loading