Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

WIP

  • Loading branch information...
commit 23acf877c840285e6ae74a31637f8a722141fb41 1 parent 3c6a3e6
@eallik authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 spinoff/actor/cell.py
View
4 spinoff/actor/cell.py
@@ -160,6 +160,7 @@ def _stop():
self.report()
_stop()
return
+ proc_never_done = True if self.impl.run else False
processing = True if self.impl.run else False
stopped = False
while True:
@@ -174,6 +175,7 @@ def _stop():
break
# dbg("@ CTRL:", m)
if m == '__done':
+ proc_never_done = False
processing = False
if stopped:
m = '_stop' # fall thru to the _stop/_kill handler
@@ -186,7 +188,7 @@ def _stop():
elif m in ('_kill', '_stop'):
if m == '_kill':
processing = False
- if not processing:
+ if not processing or proc_never_done:
if self.proc:
self.proc.kill()
_stop()
Please sign in to comment.
Something went wrong with that request. Please try again.