Update mtproto_sender.py

Adding return in line 312
This commit is contained in:
LiemCH 2016-10-10 13:55:45 +07:00 committed by GitHub
parent 14bb158c8b
commit d706dbe7b0

View File

@ -309,6 +309,7 @@ class MtProtoSender:
# Server send another same reply. # Server send another same reply.
# So We ignore it and continue on updates thread # So We ignore it and continue on updates thread
print('Cannot receive a request from inside an RPC result from the updates thread.') print('Cannot receive a request from inside an RPC result from the updates thread.')
return
if inner_code == 0x3072cfa1: # GZip packed if inner_code == 0x3072cfa1: # GZip packed
unpacked_data = gzip.decompress(reader.tgread_bytes()) unpacked_data = gzip.decompress(reader.tgread_bytes())