mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-03 06:03:06 +00:00
comments
This commit is contained in:
parent
1e2ea79369
commit
a14b081990
@ -137,6 +137,7 @@ template dispatchTask(
|
||||
# could do a spinlock here until the other side cancels,
|
||||
# but for now it'd at least be better to leak than possibly
|
||||
# corrupt memory since it's easier to detect and fix leaks
|
||||
# and they won't corrupt random bits of memory
|
||||
warn "request was cancelled while thread task is running", exc = exc.msg
|
||||
GC_ref(ctx)
|
||||
ctx.cancelled.store(true, moAcquireRelease)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user