summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamar Christina <tamar@zhox.com>2019-11-18 07:09:03 +0000
committerBen Gamari <ben@smart-cactus.org>2020-07-15 16:41:02 -0400
commitb492fe6e4bde56341abbdb55d19fdf6e02ff70e9 (patch)
treee29fc2c9a85598179022664d752e62738d79287c
parentccf0d1073969e3b73fed82cd421d74800f552953 (diff)
downloadhaskell-b492fe6e4bde56341abbdb55d19fdf6e02ff70e9.tar.gz
winio: Remove some barf statements that are a bit strict.
-rw-r--r--rts/win32/AsyncWinIO.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/rts/win32/AsyncWinIO.c b/rts/win32/AsyncWinIO.c
index 19e30fe1d1..6095b745c9 100644
--- a/rts/win32/AsyncWinIO.c
+++ b/rts/win32/AsyncWinIO.c
@@ -308,8 +308,6 @@ void awaitAsyncRequests (bool wait)
timeslice in between. */
if (wait && outstanding_service_requests)
SleepConditionVariableSRW (&threadIOWait, &lock, INFINITE, 0);
- else if (wait && !outstanding_service_requests)
- barf ("asked to wait for I/O but no I/O action is pending.");
ReleaseSRWLockExclusive (&lock);
}