summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-08-23 14:37:14 +0200
committerGitHub <noreply@github.com>2016-08-23 14:37:14 +0200
commiteb03040d7d810a0d31c5d4ae3835d02631d450fe (patch)
treeafabf480883f28d6dc7055c75c1f6d21a62da52e
parent605ff688393c56b206fed83076298845d3028c1a (diff)
parentb6844bf487e778cbb8310a406b5bc76065958c51 (diff)
downloadNim-eb03040d7d810a0d31c5d4ae3835d02631d450fe.tar.gz
Merge pull request #4645 from endragor/asyncevent-recursion
Fixed infinite recursion in setEvent and close procs in new asyncdispatch
-rw-r--r--lib/upcoming/asyncdispatch.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/upcoming/asyncdispatch.nim b/lib/upcoming/asyncdispatch.nim
index c9db03e0e..19c9815d2 100644
--- a/lib/upcoming/asyncdispatch.nim
+++ b/lib/upcoming/asyncdispatch.nim
@@ -1686,11 +1686,11 @@ else:
 
   proc setEvent*(ev: AsyncEvent) =
     ## Sets new ``AsyncEvent`` to signaled state.
-    setEvent(SelectEvent(ev))
+    ioselectors.setEvent(SelectEvent(ev))
 
   proc close*(ev: AsyncEvent) =
     ## Closes ``AsyncEvent``
-    close(SelectEvent(ev))
+    ioselectors.close(SelectEvent(ev))
 
   proc addEvent*(ev: AsyncEvent, cb: Callback) =
     ## Start watching for event ``ev``, and call callback ``cb``, when