mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
Make is_connected a property
This is consistent with the rest of is_ properties
This commit is contained in:
@@ -168,7 +168,7 @@ async def catch_up(self: 'TelegramClient'):
|
||||
async def _update_loop(self: 'TelegramClient'):
|
||||
try:
|
||||
updates_to_dispatch = deque()
|
||||
while self.is_connected():
|
||||
while self.is_connected:
|
||||
if updates_to_dispatch:
|
||||
await _dispatch(self, *updates_to_dispatch.popleft())
|
||||
continue
|
||||
|
Reference in New Issue
Block a user