Commit 9393af88 authored by jan.koester's avatar jan.koester
Browse files

test

parent 114cc032
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
@@ -108,15 +108,15 @@ namespace netplus {
		void RemoveFromClientList(client* pClientContext) {
			std::lock(g_ClientContextMutex, pClientContext->cltmtx);
			std::lock_guard<std::mutex> lock(g_ClientContextMutex, std::adopt_lock);
			std::lock_guard<std::mutex> clock(pClientContext->cltmtx, std::adopt_lock);
			pClientContext->cltmtx.lock();

			//Remove the client context from the list
			auto it = std::find(g_ClientContext.begin(), g_ClientContext.end(), pClientContext);
			if (it != g_ClientContext.end()) {
				g_ClientContext.erase(it);
				delete pClientContext;
				pClientContext = nullptr;
			}
			
		}

		void AcceptConnection(LPFN_ACCEPTEX lpfnAcceptEx, int tid, ULONG_PTR args) {