Fix pts may be 0 with no workers set (#808)

This commit is contained in:
Lonami Exo 2018-05-22 10:39:40 +02:00
parent b667bb0c1a
commit fac6b2348b

View File

@ -2436,7 +2436,7 @@ class TelegramClient(TelegramBareClient):
def catch_up(self):
state = self.session.get_update_state(0)
if not state:
if not state or not state.pts:
return
self.session.catching_up = True