1
0
mirror of https://github.com/janLo/wallabag-kindle-consumer synced 2026-06-19 19:08:00 +00:00

Add missing ensure_future

This commit is contained in:
2019-01-26 22:23:20 +01:00
parent d18c756acd
commit 2076d9efff
+1 -1
View File
@@ -34,7 +34,7 @@ class Refresher:
async def refresh(self): async def refresh(self):
while self._running: while self._running:
with self.sessionmaker as session: with self.sessionmaker as session:
self._wait_fut = asyncio.sleep(self._wait_time(session)) self._wait_fut = asyncio.ensure_future(asyncio.sleep(self._wait_time(session)))
try: try:
await self._wait_fut await self._wait_fut
except asyncio.CancelledError: except asyncio.CancelledError: