Process messages without pts

This commit is contained in:
Andrey Egorov 2017-09-23 00:12:36 +03:00 committed by Lonami
parent f39f9c33a0
commit 73fbfde7ef

View File

@ -78,7 +78,7 @@ class UpdateState:
return # Nothing else to be done return # Nothing else to be done
pts = getattr(update, 'pts', self._state.pts) pts = getattr(update, 'pts', self._state.pts)
if pts <= self._state.pts: if hasattr(update, 'pts') and pts <= self._state.pts:
return # We already handled this update return # We already handled this update
self._state.pts = pts self._state.pts = pts