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

fixed

parent dc96740c
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
@@ -231,7 +231,7 @@ namespace netplus {
					&dwBytesTransfered,
					&lpContext,
					&pOverlapped,
					1000);
					_Timeout);

				if (lpContext == 0) {
					continue;
@@ -392,7 +392,7 @@ namespace netplus {

		while (RUNNING) {
			// This is the correct blocking call. It waits for the g_hAcceptEvent to be signaled.
			DWORD dwResult = WSAWaitForMultipleEvents(1, &g_hAcceptEvent, FALSE, 1000, FALSE);
			DWORD dwResult = WSAWaitForMultipleEvents(1, &g_hAcceptEvent, FALSE, _Timeout, FALSE);

			if (WSA_WAIT_FAILED == dwResult) {
				// Handle wait failure