From ed77ba6f8ff115ac624f02f691c9991e5b37be60 Mon Sep 17 00:00:00 2001 From: Andrey Egorov Date: Tue, 17 Oct 2017 01:39:04 +0300 Subject: [PATCH] Likely fix .log_out crashing "calling Event" (#349) --- telethon/network/mtproto_sender.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/network/mtproto_sender.py b/telethon/network/mtproto_sender.py index aa9c0a74..520cadbf 100644 --- a/telethon/network/mtproto_sender.py +++ b/telethon/network/mtproto_sender.py @@ -217,7 +217,7 @@ class MtProtoSender: 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