# HG changeset patch
# User Edouard Tisserant
# Date 1536145121 -7200
# Node ID 985973ed701bb4ebd5b68b95766ebada04572f17
# Parent  d9175daf6522426cb2c8ebcd689edda3ae32aeb3
Removed useless condition in Worker.py that was allowing misfit non-serialized call when worker still not running its loop.

diff -r d9175daf6522 -r 985973ed701b runtime/Worker.py
--- a/runtime/Worker.py	Tue Aug 21 16:11:02 2018 +0200
+++ b/runtime/Worker.py	Wed Sep 05 12:58:41 2018 +0200
@@ -76,7 +76,7 @@
 
         _job = job(*args, **kwargs)
 
-        if self._threadID == thread.get_ident() or self._threadID is None:
+        if self._threadID == thread.get_ident():
             # if caller is worker thread execute immediately
             _job.do()
         else: