Procházet zdrojové kódy

Can't wait for INFINITY time.

Bentley James Oakes před 7 roky
rodič
revize
a6cb4efb27

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

@@ -712,7 +712,7 @@ class ThreadsControllerBase(ControllerBase):
                 if self.behind:                
                     self.behind = False
                 with self.input_condition:
-                    if earliest_event_time == self.getEarliestEventTime():
+                    if earliest_event_time == self.getEarliestEventTime() and not earliest_event_time == INFINITY:
                         self.input_condition.wait((earliest_event_time - now) / 1000.0)
                     else:
                         # Something happened that made the queue fill up already, but we were not yet waiting for the Condition...