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

test

parent 593e490e
Loading
Loading
Loading
Loading
+2 −2
Changes for src/event/iocp.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -90,8 +90,8 @@ namespace netplus {

		void AddToClientList(client* pClientContext) {
			std::lock<std::mutex>(g_ClientContextMutex, pClientContext->cltmtx);
			std::lock_guard<std::mutex> lock(g_ClientContextMutex);
			std::lock_guard<std::mutex> clock(pClientContext->cltmtx);
			std::unique_lock <std::mutex> lock(g_ClientContextMutex);
			std::unique_lock <std::mutex> clock(pClientContext->cltmtx);

			g_ClientContext.push_back(pClientContext);
		}