fix set_result of close_waiter future on polling end

This commit is contained in:
Anton Patrushev 2019-08-28 23:40:24 +02:00
parent 58a8f43e2c
commit 65c87e72f7

View file

@ -299,7 +299,7 @@ class Dispatcher(DataMixin, ContextInstanceMixin):
await asyncio.sleep(relax)
finally:
self._close_waiter._set_result(None)
self._close_waiter.set_result(None)
log.warning('Polling is stopped.')
async def _process_polling_updates(self, updates, fast: typing.Optional[bool] = True):