Likely fix .log_out crashing "calling Event" (#349)

This commit is contained in:
Andrey Egorov 2017-10-17 01:39:04 +03:00 committed by Lonami
parent ee01724cdb
commit ed77ba6f8f

View File

@ -217,7 +217,7 @@ class MtProtoSender:
r = self._pop_request_of_type(msg_id, LogOutRequest) r = self._pop_request_of_type(msg_id, LogOutRequest)
if r: if r:
r.result = True # Telegram won't send this value r.result = True # Telegram won't send this value
r.confirm_received() r.confirm_received.set()
self._logger.debug('Message ack confirmed', r) self._logger.debug('Message ack confirmed', r)
return True return True