mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2026-09-03 23:50:39 +00:00
Fix incorrect async session warning
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user