Loading src/event/iocp.cpp +1 −4 Changes for src/event/iocp.cpp: 1 added line, 4 removed lines. Original line number Diff line number Diff line Loading @@ -104,7 +104,6 @@ namespace netplus { void RemoveFromClientList(client* pClientContext) { std::lock_guard<std::mutex> lock(g_ClientContextMutex); std::lock_guard<std::mutex> clock(pClientContext->cltmtx); auto it = std::find(g_ClientContext.begin(), g_ClientContext.end(), pClientContext); if (it != g_ClientContext.end()) { Loading Loading @@ -252,8 +251,7 @@ namespace netplus { continue; } if (!pClientContext->cltmtx.try_lock()) continue; std::unique_lock<std::mutex> cltLock(pClientContext->cltmtx); try { auto& curCon = pClientContext->CurCon; Loading Loading @@ -299,7 +297,6 @@ namespace netplus { std::cerr << "unknown error close coonection !" << std::endl; eargs->evpoll->RemoveFromClientList(pClientContext); } pClientContext->cltmtx.unlock(); } // for } }; Loading Loading
src/event/iocp.cpp +1 −4 Changes for src/event/iocp.cpp: 1 added line, 4 removed lines. Original line number Diff line number Diff line Loading @@ -104,7 +104,6 @@ namespace netplus { void RemoveFromClientList(client* pClientContext) { std::lock_guard<std::mutex> lock(g_ClientContextMutex); std::lock_guard<std::mutex> clock(pClientContext->cltmtx); auto it = std::find(g_ClientContext.begin(), g_ClientContext.end(), pClientContext); if (it != g_ClientContext.end()) { Loading Loading @@ -252,8 +251,7 @@ namespace netplus { continue; } if (!pClientContext->cltmtx.try_lock()) continue; std::unique_lock<std::mutex> cltLock(pClientContext->cltmtx); try { auto& curCon = pClientContext->CurCon; Loading Loading @@ -299,7 +297,6 @@ namespace netplus { std::cerr << "unknown error close coonection !" << std::endl; eargs->evpoll->RemoveFromClientList(pClientContext); } pClientContext->cltmtx.unlock(); } // for } }; Loading