Commit af481c3a authored by jan.koester's avatar jan.koester
Browse files

test

parent 9d10d2d9
Loading
Loading
Loading
Loading
+3 −3
Changes for src/event/iocp.cpp: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -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);
@@ -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){
@@ -272,7 +271,6 @@ namespace netplus {
						eargs->evpoll->RemoveFromClientList(pClientContext);
						continue;
						}
					pClientContext->cltmtx.unlock();
				}
			} // for
		}
@@ -370,3 +368,5 @@ namespace netplus {