mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-01-31 13:35:11 +00:00
fix: restore removeCallback
This commit is contained in:
parent
0d84f273c9
commit
1c176c173d
@ -823,7 +823,7 @@ proc withTimeout*[T](fut: Future[T], timeout: Duration): Future[bool] =
|
||||
if not(retFuture.finished()):
|
||||
if isNil(udata):
|
||||
# Timer exceeded first.
|
||||
clearTimer(timer)
|
||||
fut.removeCallback(continuation)
|
||||
fut.cancel()
|
||||
retFuture.complete(false)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user