Add callsign to close message
This commit is contained in:
parent
587c419316
commit
f3b65b7042
@ -316,7 +316,7 @@ class HBMASTER(DatagramProtocol):
|
|||||||
and self._clients[_radio_id]['CONNECTION'] == 'YES' \
|
and self._clients[_radio_id]['CONNECTION'] == 'YES' \
|
||||||
and self._clients[_radio_id]['IP'] == _host \
|
and self._clients[_radio_id]['IP'] == _host \
|
||||||
and self._clients[_radio_id]['PORT'] == _port:
|
and self._clients[_radio_id]['PORT'] == _port:
|
||||||
logger.info('(%s) Client is closing down: %s', self._master, int_id(_radio_id))
|
logger.info('(%s) Client is closing down: %s (%s)', self._master, _self.clients[_radio_id]['CALLSIGN'], int_id(_radio_id))
|
||||||
self.transport.write('MSTNAK'+_radio_id, (_host, _port))
|
self.transport.write('MSTNAK'+_radio_id, (_host, _port))
|
||||||
del self._clients[_radio_id]
|
del self._clients[_radio_id]
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user