Skip to content

Commit

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

0 comments on commit 640589f

Please sign in to comment.