Commit 1f193ad0 authored by jan.koester's avatar jan.koester
Browse files

new test

parent e9d4b058
Loading
Loading
Loading
Loading
+3 −2
Changes for src/event/iocp.cpp: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -103,8 +103,9 @@ namespace netplus {
		}

		void RemoveFromClientList(client* pClientContext) {
			std::lock_guard<std::mutex> lock(g_ClientContextMutex);
			std::lock_guard<std::mutex> cltLock(pClientContext->cltmtx);
			std::lock(g_ClientContextMutex, pClientContext->cltmtx);
			std::lock_guard<std::mutex> lock1(g_ClientContextMutex, std::adopt_lock);
			std::lock_guard<std::mutex> lock2(pClientContext->cltmtx, std::adopt_lock);

			auto it = std::find(g_ClientContext.begin(), g_ClientContext.end(), pClientContext);
			if (it != g_ClientContext.end()) {