pysim.back: fix add_sync_process wrapper to handle signals correctly.
This commit is contained in:
parent
3bc3647380
commit
88970ee29f
|
@ -243,7 +243,9 @@ class Simulator:
|
|||
try:
|
||||
result = process.send(None)
|
||||
while True:
|
||||
result = process.send((yield (result or Tick(domain))))
|
||||
if result is None:
|
||||
result = Tick(domain)
|
||||
result = process.send((yield result))
|
||||
except StopIteration:
|
||||
pass
|
||||
self.add_process(sync_process())
|
||||
|
|
Loading…
Reference in a new issue