Преглед на файлове

Move self.run outside of the lock

Yentl Van Tendeloo преди 7 години
родител
ревизия
5fc877865f
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/python_sccd/python_sccd_runtime/statecharts_core.py

+ 2 - 2
src/python_sccd/python_sccd_runtime/statecharts_core.py

@@ -576,8 +576,8 @@ class EventLoopControllerBase(ControllerBase):
             ControllerBase.addInput(self, input_event, time_offset, force_internal)
             self.event_loop.clear()
             self.simulated_time = self.getEarliestEventTime()
-            if not self.running:
-                self.run()
+        if not self.running:
+            self.run()
 
     def start(self):
         ControllerBase.start(self)