From b6844bf487e778cbb8310a406b5bc76065958c51 Mon Sep 17 00:00:00 2001 From: Ruslan Mustakov Date: Tue, 23 Aug 2016 13:48:23 +0700 Subject: [PATCH] Fixed infinite recursion in setEvent and close procs in upcoming asyncdispatch --- lib/upcoming/asyncdispatch.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/upcoming/asyncdispatch.nim b/lib/upcoming/asyncdispatch.nim index c9db03e0eb..19c9815d29 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