diff options
Diffstat (limited to 'lib/system/threads.nim')
-rwxr-xr-x | lib/system/threads.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/threads.nim b/lib/system/threads.nim index 60643b526..39e5d3908 100755 --- a/lib/system/threads.nim +++ b/lib/system/threads.nim @@ -306,7 +306,7 @@ else: proc running*[TMsg](t: TThread[TMsg]): bool {.inline.} = ## returns true if `t` is running. - result = t.emptyFn == nil and t.dataFn == nil + result = t.emptyFn != nil or t.dataFn != nil proc joinThread*[TMsg](t: TThread[TMsg]) {.inline.} = ## waits for the thread `t` to finish. |