Now it works in case if we have bad clock settings on the client.

This commit is contained in:
Anton Grigoryev 2015-04-11 08:46:49 +03:00
parent 308b76fce1
commit 433e9bc5d3

View File

@ -66,7 +66,7 @@ class Session:
:param message: byte string to send
"""
message_id = struct.pack('<Q', int(time()*2**30)*4)
message_id = struct.pack('<Q', int((time()+self.timedelta)*2**30)*4)
if self.auth_key is None or self.server_salt is None:
# Unencrypted data send