Fix lost requests on disconnect need_confirmation.clear

The pending acks shouldn't be cleared, in case of a reconnection
these would be pretty common. E.g. disconnect(), connect(),
invoke, repeat.
This commit is contained in:
Lonami Exo 2018-05-10 16:45:55 +02:00
parent eb22bce2d9
commit ee51aa7073

View File

@ -79,7 +79,6 @@ class MtProtoSender:
"""Disconnects from the server."""
__log__.info('Disconnecting MtProtoSender...')
self.connection.close()
self._need_confirmation.clear()
self._clear_all_pending()
# region Send and receive