瀏覽代碼

Can't wait for INFINITY time.

Bentley James Oakes 7 年之前
父節點
當前提交
a6cb4efb27
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/python_sccd/python_sccd_runtime/statecharts_core.py

+ 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...