mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-03 21:23:15 +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!')
|
raise ValueError('You must be connected to invoke requests!')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
# Ensure that we start with no previous errors (i.e. resending)
|
||||||
|
request.confirm_received.clear()
|
||||||
|
request.rpc_error = None
|
||||||
|
|
||||||
self._sender.send(request)
|
self._sender.send(request)
|
||||||
if not call_receive:
|
if not call_receive:
|
||||||
# TODO This will be slightly troublesome if we allow
|
# TODO This will be slightly troublesome if we allow
|
||||||
|
|
Loading…
Reference in New Issue
Block a user