Loading src/event/iocp.cpp +3 −3 Changes for src/event/iocp.cpp: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -247,7 +247,7 @@ namespace netplus { } try { pClientContext->cltmtx.lock(); std::lock_guard<std::mutex> lock(pClientContext->cltmtx); auto& curCon = pClientContext->CurCon; if (!curCon->SendData.empty()) { eargs->event->ResponseEvent(curCon, tid, args); Loading @@ -264,7 +264,6 @@ namespace netplus { eargs->event->RequestEvent(curCon, tid, args); } WSAResetEvent(pClientContext->CurCon->csock->_Overlapped.hEvent); pClientContext->cltmtx.unlock(); } catch (NetException& e) { std::cerr << e.what() << std::endl; if(e.getErrorType()!=NetException::Note){ Loading @@ -272,7 +271,6 @@ namespace netplus { eargs->evpoll->RemoveFromClientList(pClientContext); continue; } pClientContext->cltmtx.unlock(); } } // for } Loading Loading @@ -370,3 +368,5 @@ namespace netplus { Loading
src/event/iocp.cpp +3 −3 Changes for src/event/iocp.cpp: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -247,7 +247,7 @@ namespace netplus { } try { pClientContext->cltmtx.lock(); std::lock_guard<std::mutex> lock(pClientContext->cltmtx); auto& curCon = pClientContext->CurCon; if (!curCon->SendData.empty()) { eargs->event->ResponseEvent(curCon, tid, args); Loading @@ -264,7 +264,6 @@ namespace netplus { eargs->event->RequestEvent(curCon, tid, args); } WSAResetEvent(pClientContext->CurCon->csock->_Overlapped.hEvent); pClientContext->cltmtx.unlock(); } catch (NetException& e) { std::cerr << e.what() << std::endl; if(e.getErrorType()!=NetException::Note){ Loading @@ -272,7 +271,6 @@ namespace netplus { eargs->evpoll->RemoveFromClientList(pClientContext); continue; } pClientContext->cltmtx.unlock(); } } // for } Loading Loading @@ -370,3 +368,5 @@ namespace netplus {