From 0a3cd6d9bacba524daab33578888b30ff17e773d Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 28 Dec 2017 19:54:55 +0100 Subject: [PATCH] fixes a serious poll() regression that caused poll() to ignore the timeout parameter --- lib/pure/asyncdispatch.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/asyncdispatch.nim b/lib/pure/asyncdispatch.nim index 23eb80b37..b62cf2e9b 100644 --- a/lib/pure/asyncdispatch.nim +++ b/lib/pure/asyncdispatch.nim @@ -1493,7 +1493,7 @@ proc poll*(timeout = 500) = ## Waits for completion events and processes them. Raises ``ValueError`` ## if there are no pending operations. This runs the underlying OS ## `epoll`:idx: or `kqueue`:idx: primitive only once. - discard runOnce() + discard runOnce(timeout) # Common procedures between current and upcoming asyncdispatch include includes.asynccommon