Skip to content

Commit

Permalink
Update broadcastmanager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreluctg authored Sep 27, 2023
1 parent c455d71 commit ad7247c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion can/broadcastmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad7247c

Please sign in to comment.