Now it works in case if we have bad clock settings on the client.
This commit is contained in:
parent
308b76fce1
commit
433e9bc5d3
@ -66,7 +66,7 @@ class Session:
|
|||||||
:param message: byte string to send
|
: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:
|
if self.auth_key is None or self.server_salt is None:
|
||||||
# Unencrypted data send
|
# Unencrypted data send
|
||||||
|
Loading…
Reference in New Issue
Block a user