Skip to content

Commit

Permalink
time_to_wait...
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-usielski committed Dec 3, 2024
1 parent bde0e6b commit f56ee9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion moler/runner_single_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def __init__(self):
self._stop_loop_runner = threading.Event()
self._stop_loop_runner.clear()
self._tick = 0.001
self._time_to_wait_for_connection_observer_done = 1000 * self._tick
self._in_shutdown = False
self._loop_thread = threading.Thread(
target=self._runner_loop,
Expand Down Expand Up @@ -213,7 +214,7 @@ def _get_max_time(self, connection_observer):
max_time = start_time + connection_observer.timeout
if connection_observer.life_status.terminating_timeout is not None:
max_time += connection_observer.life_status.terminating_timeout
max_time += 1000 * self._tick
max_time += self._time_to_wait_for_connection_observer_done
return max_time

def _wait_for_not_started_connection_observer_is_done(self, connection_observer):
Expand Down

0 comments on commit f56ee9c

Please sign in to comment.