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

test

parent f712aa09
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -289,8 +289,9 @@ namespace netplus {
                    ULONG_PTR key = 0;
                    OVERLAPPED* pov = nullptr;

                    BOOL ok = GetQueuedCompletionStatus(st->iocp, &bytes, &key, &pov, INFINITE);
                    BOOL ok = GetQueuedCompletionStatus(st->iocp, &bytes, &key, &pov, 1000);
                    if (!event::Running) break;
                    if (!ok && !pov) continue;   // timeout or spurious wake
                    if (!pov && key == 0) continue;

                    socket* sockObj = reinterpret_cast<socket*>(key);