Use signed longs for every request_id (#138 follow-up)

This commit is contained in:
Lonami Exo 2017-06-21 10:20:39 +02:00
parent d58222d007
commit a9a5c7e254

View File

@ -309,7 +309,7 @@ class MtProtoSender:
def _handle_bad_msg_notification(self, msg_id, sequence, reader): def _handle_bad_msg_notification(self, msg_id, sequence, reader):
self._logger.debug('Handling bad message notification') self._logger.debug('Handling bad message notification')
reader.read_int(signed=False) # code reader.read_int(signed=False) # code
reader.read_long(signed=False) # request_id reader.read_long() # request_id
reader.read_int() # request_sequence reader.read_int() # request_sequence
error_code = reader.read_int() error_code = reader.read_int()
@ -328,7 +328,7 @@ class MtProtoSender:
def _handle_rpc_result(self, msg_id, sequence, reader): def _handle_rpc_result(self, msg_id, sequence, reader):
self._logger.debug('Handling RPC result') self._logger.debug('Handling RPC result')
reader.read_int(signed=False) # code reader.read_int(signed=False) # code
request_id = reader.read_long(signed=False) request_id = reader.read_long()
inner_code = reader.read_int(signed=False) inner_code = reader.read_int(signed=False)
try: try: