summary refs log tree commit diff stats
path: root/lib/pure/asyncdispatch.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-12-28 19:54:55 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-12-28 19:54:55 +0100
commit0a3cd6d9bacba524daab33578888b30ff17e773d (patch)
tree8ab3d10f2a6c46a76c7e9109c150f3322b4efd7b /lib/pure/asyncdispatch.nim
parente695f9d94e752fbf18012f9ee164af1ba0649fa1 (diff)
downloadNim-0a3cd6d9bacba524daab33578888b30ff17e773d.tar.gz
fixes a serious poll() regression that caused poll() to ignore the timeout parameter
Diffstat (limited to 'lib/pure/asyncdispatch.nim')
-rw-r--r--lib/pure/asyncdispatch.nim2
1 files changed, 1 insertions, 1 deletions
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