From 26290883a28963a75dc4eb92e3560be0533b093c Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 4 Jul 2016 12:57:53 +0300 Subject: [PATCH] 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(). --- uasyncio.core/uasyncio/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uasyncio.core/uasyncio/core.py b/uasyncio.core/uasyncio/core.py index 10e97070..e1a5bd2b 100644 --- a/uasyncio.core/uasyncio/core.py +++ b/uasyncio.core/uasyncio/core.py @@ -25,7 +25,7 @@ class EventLoop: # CPython asyncio incompatibility: we don't return Task object def call_soon(self, callback, *args): - self.call_at(0, callback, *args) + self.call_at(self.time(), callback, *args) def call_later(self, delay, callback, *args): self.call_at(self.time() + delay, callback, *args)