Fix RPC errors being ignored due to modifying the wrong attribute

This commit is contained in:
Lonami Exo 2017-09-03 11:19:28 +02:00
parent 83f3f66113
commit db6fd4bdc2

View File

@ -335,7 +335,7 @@ class MtProtoSender:
self._send_acknowledges() self._send_acknowledges()
if request: if request:
request.error = error request.rpc_error = error
request.confirm_received.set() request.confirm_received.set()
# else TODO Where should this error be reported? # else TODO Where should this error be reported?
# Read may be async. Can an error not-belong to a request? # Read may be async. Can an error not-belong to a request?