Commit 7c0a8919 authored by jan.koester's avatar jan.koester
Browse files

test

parent 36bc77ac
Loading
Loading
Loading
Loading
+1 −4
Changes for src/event/iocp.cpp: 1 added line, 4 removed lines.
Original line number Diff line number Diff line
@@ -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()) {
@@ -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;					
@@ -299,7 +297,6 @@ namespace netplus {
					std::cerr << "unknown error close coonection !" << std::endl;
					eargs->evpoll->RemoveFromClientList(pClientContext);
				}
				pClientContext->cltmtx.unlock();
			} // for
		}
	};