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().
pull/81/head
Paul Sokolovsky 2016-07-04 12:57:53 +03:00
rodzic 0e0fffc138
commit 26290883a2
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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)