mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-01-22 17:29:24 +00:00
Fix removeReader/removeWriter can produce SIGSEGV.
This commit is contained in:
parent
0767aaeb37
commit
6aaa96569f
@ -1,5 +1,5 @@
|
|||||||
packageName = "asyncdispatch2"
|
packageName = "asyncdispatch2"
|
||||||
version = "2.1.5"
|
version = "2.1.6"
|
||||||
author = "Status Research & Development GmbH"
|
author = "Status Research & Development GmbH"
|
||||||
description = "Asyncdispatch2"
|
description = "Asyncdispatch2"
|
||||||
license = "Apache License 2.0 or MIT"
|
license = "Apache License 2.0 or MIT"
|
||||||
|
@ -234,6 +234,7 @@ template processCallbacks(loop: untyped) =
|
|||||||
# can be generated.
|
# can be generated.
|
||||||
if len(loop.callbacks) == 0: break
|
if len(loop.callbacks) == 0: break
|
||||||
let callable = loop.callbacks.popFirst()
|
let callable = loop.callbacks.popFirst()
|
||||||
|
if not isNil(callable.function):
|
||||||
callable.function(callable.udata)
|
callable.function(callable.udata)
|
||||||
|
|
||||||
when defined(windows) or defined(nimdoc):
|
when defined(windows) or defined(nimdoc):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user