set CONNECTED = None when peer is MSTNAKed
This commit is contained in:
parent
06de537ff5
commit
e420576a8e
@ -582,6 +582,7 @@ class HBSYSTEM(DatagramProtocol):
|
||||
if self._config['LOOSE'] or _peer_id == self._config['RADIO_ID']: # Validate the Radio_ID unless using loose validation
|
||||
logger.warning('(%s) MSTNAK Received. Resetting connection to the Master.', self._system)
|
||||
self._stats['CONNECTION'] = 'NO' # Disconnect ourselves and re-register
|
||||
self._stats['CONNECTED'] = None
|
||||
|
||||
elif _command == 'RPTA': # Actually RPTACK -- an ACK from the master
|
||||
# Depending on the state, an RPTACK means different things, in each clause, we check and/or set the state
|
||||
|
Loading…
Reference in New Issue
Block a user