Skip to content

Commit 48ceb05

Browse files
committed
uasyncio: Always call wait_io_queue
1 parent eef13bb commit 48ceb05

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

extmod/uasyncio/core.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,7 @@ def run_until_complete(main_task=None):
159159
if t:
160160
# A task waiting on _task_queue; "ph_key" is time to schedule task at
161161
dt = ticks_diff(t.ph_key, ticks())
162-
if dt > 0:
163-
_io_queue.wait_io_event(dt)
162+
_io_queue.wait_io_event(dt if dt > 0 else 0)
164163
elif not _io_queue.map:
165164
# No tasks can be woken so finished running
166165
return

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy