minor formatting tweaks

This commit is contained in:
Cort Buffington 2013-11-11 14:38:27 -06:00
parent bbfaea6387
commit e538def5be
1 changed files with 2 additions and 2 deletions

View File

@ -695,7 +695,7 @@ class IPSC(DatagramProtocol):
for peer in self._config['PEERS']: for peer in self._config['PEERS']:
if peer['RADIO_ID'] == _peerid: if peer['RADIO_ID'] == _peerid:
peer['STATUS']['KEEP_ALIVES_OUTSTANDING'] = 0 peer['STATUS']['KEEP_ALIVES_OUTSTANDING'] = 0
return return
elif (_packettype == PEER_REG_REPLY): elif (_packettype == PEER_REG_REPLY):
for peer in self._config['PEERS']: for peer in self._config['PEERS']:
@ -709,7 +709,7 @@ class IPSC(DatagramProtocol):
# Packets we receive... # Packets we receive...
if (_packettype in MASTER_REQUIRED): if (_packettype in MASTER_REQUIRED):
if valid_master(self._network, _peerid) == False: if valid_master(self._network, _peerid) == False:
logger.warning('(%s) PeerError: Master %s is invalid: %s', self._network, int(binascii.b2a_hex(_peerid), 16), self._peer_list) logger.warning('(%s) MasterError: %s is not the master peer', self._network, int(binascii.b2a_hex(_peerid), 16))
return return
if (_packettype == MASTER_ALIVE_REPLY): if (_packettype == MASTER_ALIVE_REPLY):