summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/system/threads.nim2
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.