From 640589fc192dddd47b005e279173a61b2142aaf9 Mon Sep 17 00:00:00 2001 From: pierreluctg Date: Mon, 2 Oct 2023 09:15:45 -0400 Subject: [PATCH] Update broadcastmanager.py --- can/broadcastmanager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/can/broadcastmanager.py b/can/broadcastmanager.py index ab2a5a032..398114a59 100644 --- a/can/broadcastmanager.py +++ b/can/broadcastmanager.py @@ -289,12 +289,11 @@ 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