fix upcoming/asyncdispatch properly
This commit is contained in:
parent
3f7694d08a
commit
5c46f26880
1 changed files with 1 additions and 3 deletions
|
|
@ -1070,9 +1070,7 @@ when defined(windows) or defined(nimdoc):
|
||||||
if cb(fd):
|
if cb(fd):
|
||||||
# we need this check to avoid exception, if `unregister(event)` was
|
# we need this check to avoid exception, if `unregister(event)` was
|
||||||
# called in callback.
|
# called in callback.
|
||||||
if ev.hWaiter != 0:
|
if ev.hWaiter != 0: unregister(ev)
|
||||||
GC_ref(pcd.ovl)
|
|
||||||
pcd.ovl.data.cell = system.protect(rawEnv(pcd.ovl.data.cb))
|
|
||||||
deallocShared(cast[pointer](pcd))
|
deallocShared(cast[pointer](pcd))
|
||||||
else:
|
else:
|
||||||
GC_ref(pcd.ovl)
|
GC_ref(pcd.ovl)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue