mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-09-16 00:42:41 +03:00
Fix incorrect async session warning
This commit is contained in:
parent
ee778ba763
commit
bc5c5d54b1
|
@ -343,7 +343,7 @@ class UpdateMethods:
|
||||||
if updates:
|
if updates:
|
||||||
self._log[__name__].info('Got difference for account updates')
|
self._log[__name__].info('Got difference for account updates')
|
||||||
|
|
||||||
_preprocess_updates = await utils.maybe_async(self._preprocess_updates(updates, users, chats))
|
_preprocess_updates = await self._preprocess_updates(updates, users, chats)
|
||||||
updates_to_dispatch.extend(_preprocess_updates)
|
updates_to_dispatch.extend(_preprocess_updates)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
@ -442,7 +442,7 @@ class UpdateMethods:
|
||||||
if updates:
|
if updates:
|
||||||
self._log[__name__].info('Got difference for channel %d updates', get_diff.channel.channel_id)
|
self._log[__name__].info('Got difference for channel %d updates', get_diff.channel.channel_id)
|
||||||
|
|
||||||
_preprocess_updates = await utils.maybe_async(self._preprocess_updates(updates, users, chats))
|
_preprocess_updates = await self._preprocess_updates(updates, users, chats)
|
||||||
updates_to_dispatch.extend(_preprocess_updates)
|
updates_to_dispatch.extend(_preprocess_updates)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
@ -464,7 +464,7 @@ class UpdateMethods:
|
||||||
except GapError:
|
except GapError:
|
||||||
continue # get(_channel)_difference will start returning requests
|
continue # get(_channel)_difference will start returning requests
|
||||||
|
|
||||||
_preprocess_updates = await utils.maybe_async(self._preprocess_updates(processed, users, chats))
|
_preprocess_updates = await self._preprocess_updates(processed, users, chats)
|
||||||
updates_to_dispatch.extend(_preprocess_updates)
|
updates_to_dispatch.extend(_preprocess_updates)
|
||||||
except asyncio.CancelledError:
|
except asyncio.CancelledError:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue
Block a user