Skip to content

Commit b757c46

Browse files
committed
Link: Ignore conflicting stop/start messages
1 parent ca3469b commit b757c46

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

isobar/timelines/clock_link.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@ def __init__(self,
2929
def start_stop_callback(is_starting):
3030
logger.debug("Link: Start/Stop callback: is_starting=%s" % is_starting)
3131
if is_starting:
32+
if self.clock_target.is_running:
33+
logger.debug("Timeline is already running, ignoring start message from Link")
34+
return
3235
self.clock_target.start()
3336
else:
37+
if not self.clock_target.is_running:
38+
logger.debug("Timeline is not running, ignoring stop message from Link")
39+
return
3440
self.clock_target.stop()
3541
self.clock_target.reset()
3642

0 commit comments

Comments
 (0)