diff --git a/codex/sales.nim b/codex/sales.nim index c635aa7c..32df3eac 100644 --- a/codex/sales.nim +++ b/codex/sales.nim @@ -74,7 +74,7 @@ func new*(_: type Sales, )) proc remove(sales: Sales, agent: SalesAgent): OnCleanUp = - proc(): Future[void] {.gcsafe, upraises:[], async.} = + proc (): Future[void] {.gcsafe, upraises:[], async.} = await agent.stop() sales.agents.keepItIf(it != agent)