Merge pull request #202 from apatrushev/fix-200

fix set_result of close_waiter future on polling end
This commit is contained in:
Alex Root Junior 2019-09-04 10:07:56 +03:00 committed by GitHub
commit d7546125a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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