Skip to content

Commit

Permalink
Likely fix .log_out crashing "calling Event" (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
andr-04 authored and Lonami committed Oct 16, 2017
1 parent ee01724 commit ed77ba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telethon/network/mtproto_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def _process_msg(self, msg_id, sequence, reader, state):
r = self._pop_request_of_type(msg_id, LogOutRequest)
if r:
r.result = True # Telegram won't send this value
r.confirm_received()
r.confirm_received.set()
self._logger.debug('Message ack confirmed', r)

return True
Expand Down

0 comments on commit ed77ba6

Please sign in to comment.