fix: restore `removeCallback`

This commit is contained in:
Dmitriy Ryajov 2020-01-08 19:32:53 -06:00
parent 0d84f273c9
commit 1c176c173d
1 changed files with 1 additions and 1 deletions

View File

@ -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: