Skip to content

Commit

Permalink
Revert Windows timeout duration
Browse files Browse the repository at this point in the history
  • Loading branch information
AidanSun05 committed Jan 4, 2025
1 parent 3824311 commit f7f4fab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os/async.windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ void Async::EventLoop::runOnce(bool wait) {

// Dequeue a completion packet from the system and check for the exit condition
// Shorter timeout than on other platforms - threads need to handle events that are not from IOCP.
DWORD timeout = wait ? 10 : 0;
DWORD timeout = wait ? 20 : 0;
BOOL ret = GetQueuedCompletionStatus(completionPort, &numBytes, &completionKey, &overlapped, timeout);

// Get the structure with completion data, passed through the overlapped pointer
Expand Down

0 comments on commit f7f4fab

Please sign in to comment.