mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Ensure the state of the requests is clean before invoking them
This commit is contained in:
parent
27408b46da
commit
62a52679f4
|
@ -304,6 +304,10 @@ class TelegramBareClient:
|
|||
raise ValueError('You must be connected to invoke requests!')
|
||||
|
||||
try:
|
||||
# Ensure that we start with no previous errors (i.e. resending)
|
||||
request.confirm_received.clear()
|
||||
request.rpc_error = None
|
||||
|
||||
self._sender.send(request)
|
||||
if not call_receive:
|
||||
# TODO This will be slightly troublesome if we allow
|
||||
|
|
Loading…
Reference in New Issue
Block a user