mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-04 22:43:12 +00:00
Catch exception when shutting down taskpool
This commit is contained in:
parent
e784eaea8e
commit
b41177574e
@ -195,7 +195,11 @@ proc stop*(s: CodexServer) {.async.} =
|
||||
raiseAssert "Failed to stop codex node"
|
||||
|
||||
if not s.taskpool.isNil:
|
||||
s.taskpool.shutdown()
|
||||
try:
|
||||
s.taskpool.shutdown()
|
||||
except Exception as exc:
|
||||
error "Failed to stop the taskpool", failures = res.failure.len
|
||||
raiseAssert("Failure in taskpool shutdown:" & exc.msg)
|
||||
|
||||
proc new*(
|
||||
T: type CodexServer, config: CodexConf, privateKey: CodexPrivateKey
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user