소스 검색

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