Skip to content

Commit 2629088

Browse files
committed
uasyncio.core: call_soon(): Use current time, not zero time.
Using static zero time may become a problem when using wrap-around time sources, like utime.ticks_ms().
1 parent 0e0fffc commit 2629088

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uasyncio.core/uasyncio/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def create_task(self, coro):
2525
# CPython asyncio incompatibility: we don't return Task object
2626

2727
def call_soon(self, callback, *args):
28-
self.call_at(0, callback, *args)
28+
self.call_at(self.time(), callback, *args)
2929

3030
def call_later(self, delay, callback, *args):
3131
self.call_at(self.time() + delay, callback, *args)

0 commit comments

Comments
 (0)