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:
|
try:
|
||||||
result = process.send(None)
|
result = process.send(None)
|
||||||
while True:
|
while True:
|
||||||
result = process.send((yield (result or Tick(domain))))
|
if result is None:
|
||||||
|
result = Tick(domain)
|
||||||
|
result = process.send((yield result))
|
||||||
except StopIteration:
|
except StopIteration:
|
||||||
pass
|
pass
|
||||||
self.add_process(sync_process())
|
self.add_process(sync_process())
|
||||||
|
|
Loading…
Reference in a new issue