mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-03-03 19:00:21 +03:00
Fix new salt not being saved to session file (#362)
This commit is contained in:
parent
050cd95d32
commit
f37b9ed20e
|
@ -312,6 +312,7 @@ class MtProtoSender:
|
||||||
self.session.salt = struct.unpack(
|
self.session.salt = struct.unpack(
|
||||||
'<Q', struct.pack('<q', bad_salt.new_server_salt)
|
'<Q', struct.pack('<q', bad_salt.new_server_salt)
|
||||||
)[0]
|
)[0]
|
||||||
|
self.session.save()
|
||||||
|
|
||||||
request = self._pop_request(bad_salt.bad_msg_id)
|
request = self._pop_request(bad_salt.bad_msg_id)
|
||||||
if request:
|
if request:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user