Skip to content

Commit

Permalink
Fix ._clear_all_pending failing due to a wrong call (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
andr-04 authored and Lonami committed Oct 18, 2017
1 parent 87dc476 commit 16cf94c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telethon/network/mtproto_sender.py
Expand Up @@ -270,7 +270,7 @@ def _pop_request_of_type(self, msg_id, t):

def _clear_all_pending(self):
for r in self._pending_receive.values():
r.confirm_received.set()
r.confirm_received.request.set()
self._pending_receive.clear()

def _handle_pong(self, msg_id, sequence, reader):
Expand Down

0 comments on commit 16cf94c

Please sign in to comment.