mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-19 19:46:41 +00:00
Fix pts may be 0 with no workers set (#808)
This commit is contained in:
parent
b667bb0c1a
commit
fac6b2348b
@ -2436,7 +2436,7 @@ class TelegramClient(TelegramBareClient):
|
|||||||
|
|
||||||
def catch_up(self):
|
def catch_up(self):
|
||||||
state = self.session.get_update_state(0)
|
state = self.session.get_update_state(0)
|
||||||
if not state:
|
if not state or not state.pts:
|
||||||
return
|
return
|
||||||
|
|
||||||
self.session.catching_up = True
|
self.session.catching_up = True
|
||||||
|
Loading…
Reference in New Issue
Block a user