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

fixed

parent 44350b2b
Loading
Loading
Loading
Loading
+1 −1
Changes for src/event/iocp.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -104,10 +104,10 @@ namespace netplus {

		void RemoveFromClientList(client* pClientContext) {
			std::lock_guard<std::mutex> lock(g_ClientContextMutex);
			std::lock_guard<std::mutex> cltLock(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);	
			}
		}