summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-08-12 01:24:47 +0200
committerAraq <rumpf_a@web.de>2011-08-12 01:24:47 +0200
commitc6038dda04b9c28d20bb9a1baaa226f2ecdd1f5c (patch)
tree72ca546ab43e00122325dda618a8eafcf81bb43b /lib
parent7ad5cab17e742eaeb5a6910f79f5bbaaa5e4113c (diff)
downloadNim-c6038dda04b9c28d20bb9a1baaa226f2ecdd1f5c.tar.gz
bugfix: running for threads
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.