mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-09-15 16:32:43 +03:00
Fix incorrect async session warning
This commit is contained in:
parent
ee778ba763
commit
bc5c5d54b1
|
@ -343,7 +343,7 @@ class UpdateMethods:
|
|||
if 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)
|
||||
continue
|
||||
|
||||
|
@ -442,7 +442,7 @@ class UpdateMethods:
|
|||
if updates:
|
||||
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)
|
||||
continue
|
||||
|
||||
|
@ -464,7 +464,7 @@ class UpdateMethods:
|
|||
except GapError:
|
||||
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)
|
||||
except asyncio.CancelledError:
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue
Block a user