Fix removeReader/removeWriter can produce SIGSEGV.
This commit is contained in:
parent
0767aaeb37
commit
6aaa96569f
|
@ -1,5 +1,5 @@
|
|||
packageName = "asyncdispatch2"
|
||||
version = "2.1.5"
|
||||
version = "2.1.6"
|
||||
author = "Status Research & Development GmbH"
|
||||
description = "Asyncdispatch2"
|
||||
license = "Apache License 2.0 or MIT"
|
||||
|
|
|
@ -234,7 +234,8 @@ template processCallbacks(loop: untyped) =
|
|||
# can be generated.
|
||||
if len(loop.callbacks) == 0: break
|
||||
let callable = loop.callbacks.popFirst()
|
||||
callable.function(callable.udata)
|
||||
if not isNil(callable.function):
|
||||
callable.function(callable.udata)
|
||||
|
||||
when defined(windows) or defined(nimdoc):
|
||||
import winlean, sets, hashes
|
||||
|
|
Loading…
Reference in New Issue