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

fixed

parent 8f211370
Loading
Loading
Loading
Loading
+4 −4
Changes for src/event/iocp.cpp: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
namespace netplus {
      bool RUNNING=true;

      bool WINAPI ConsoleHandler(DWORD event) {
      BOOL WINAPI ConsoleHandler(DWORD event) {
            switch (event) {
                case CTRL_C_EVENT:
                    RUNNING=false;
@@ -215,7 +215,7 @@ namespace netplus {
	public:
		EventWorker(int tid, ULONG_PTR args, EventWorkerArgs* eargs) {

			for (RUNNING) {
			while (RUNNING) {
				OVERLAPPED* pOverlapped = nullptr;
				ULONG_PTR   lpContext = 0;
				DWORD       dwBytesTransfered = 0;
@@ -313,7 +313,7 @@ namespace netplus {
		NetException exception;
		EventWorkerArgs eargs;

		if (!SetConsoleCtrlHandler(ConsoleHandler, true)) {
		if (!SetConsoleCtrlHandler(ConsoleHandler, TRUE)) {
			NetException exp;
			exp[NetException::Critical] << "event: runEventloop couldn't create ConsoleHandler !";
			throw exp;
@@ -384,7 +384,7 @@ namespace netplus {
			throw exp;
		}

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