Skip to content
Snippets Groups Projects
Commit f0b456c3 authored by Martin Teichmann's avatar Martin Teichmann
Browse files

protect from accidental double-starting the loop

parent e3f6b3b1
No related branches found
No related tags found
No related merge requests found
......@@ -502,6 +502,7 @@ class BaseType(Enum):
class SyncGroupBase:
missed_counter = 0
task = None
current_data = None
logical_in = logical_out = None
......@@ -617,6 +618,7 @@ class SyncGroup(SyncGroupBase):
raise
def start(self):
assert self.task is None or self.task.done()
self.allocate()
self.packet_index = SyncGroup.packet_index
SyncGroup.packet_index += 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment