From 1c176c173d5dce30ce7fe24f72572077b5dd6ade Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Wed, 8 Jan 2020 19:32:53 -0600 Subject: [PATCH] fix: restore `removeCallback` --- chronos/asyncloop.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chronos/asyncloop.nim b/chronos/asyncloop.nim index d48f9dc..b72553e 100644 --- a/chronos/asyncloop.nim +++ b/chronos/asyncloop.nim @@ -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: