sales was never marked as running and caused a hang (#655)

This commit is contained in:
Eric 2023-12-19 12:28:17 +11:00 committed by GitHub
parent 54c6258e8d
commit 39554c8ea9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -503,6 +503,7 @@ proc start*(sales: Sales) {.async.} =
await sales.load() await sales.load()
await sales.startSlotQueue() await sales.startSlotQueue()
await sales.subscribe() await sales.subscribe()
sales.running = true
proc stop*(sales: Sales) {.async.} = proc stop*(sales: Sales) {.async.} =
trace "stopping sales" trace "stopping sales"