diff --git a/can/broadcastmanager.py b/can/broadcastmanager.py index 398114a59..ab2a5a032 100644 --- a/can/broadcastmanager.py +++ b/can/broadcastmanager.py @@ -289,11 +289,12 @@ def start(self) -> None: def _run(self) -> None: msg_index = 0 - msg_due_time_ns = time.perf_counter_ns() if USE_WINDOWS_EVENTS: # Make sure the timer is non-signaled before entering the loop win32event.WaitForSingleObject(self.event.handle, 0) + else: + msg_due_time_ns = time.perf_counter_ns() while not self.stopped: # Prevent calling bus.send from multiple threads