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 not(retFuture.finished()):
|
||||||
if isNil(udata):
|
if isNil(udata):
|
||||||
# Timer exceeded first.
|
# Timer exceeded first.
|
||||||
clearTimer(timer)
|
fut.removeCallback(continuation)
|
||||||
fut.cancel()
|
fut.cancel()
|
||||||
retFuture.complete(false)
|
retFuture.complete(false)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue