back.pysim: fix handling of process termination.
This commit is contained in:
parent
fb27c2520b
commit
6a4004ef8d
2 changed files with 13 additions and 3 deletions
|
|
@ -320,8 +320,7 @@ class Simulator:
|
|||
stmt = proc.send(None)
|
||||
except StopIteration:
|
||||
self._processes.remove(proc)
|
||||
self._passive.remove(proc)
|
||||
self._suspended.remove(proc)
|
||||
self._passive.discard(proc)
|
||||
return
|
||||
|
||||
if isinstance(stmt, Delay):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue