Squashed unknown packet type callback bug

This commit is contained in:
Cort Buffington 2017-03-28 13:36:04 -05:00
parent 56635d7e66
commit 9a27b5185c
1 changed files with 2 additions and 2 deletions

View File

@ -413,7 +413,7 @@ class IPSC(DatagramProtocol):
self._logger.debug('(%s) Private Data Packet Received From: %s, IPSC Peer %s, Destination %s', self._system, int_id(_src_sub), int_id(_peerid), int_id(_dst_sub))
def unknown_message(self, _packettype, _peerid, _data):
self._logger.error('(%s) Unknown Message - Type: %s From: %s Packet: %s', ahex(_packettype), self._system, int_id(_peerid), ahex(_data))
self._logger.error('(%s) Unknown Message - Type: %s From: %s Packet: %s', self._system, ahex(_packettype), int_id(_peerid), ahex(_data))
#************************************************
@ -923,7 +923,7 @@ class IPSC(DatagramProtocol):
# PACKET IS OF AN UNKNOWN TYPE. LOG IT AND IDENTTIFY IT!
else:
self.unknown_message(self._system, _packettype, _peerid, data)
self.unknown_message(_packettype, _peerid, data)
return