diff --git a/hblink.py b/hblink.py index 9a933e8..8254191 100755 --- a/hblink.py +++ b/hblink.py @@ -532,9 +532,9 @@ class OPENBRIDGE(DatagramProtocol): elif _packet[:4] == DMRF: - _stream_id = _data[16:20] - logger.warning('(%s) *ProtoControl* Protocols 2 and 3 are no longer supported',self._system) + _stream_id = _packet[16:20] if _stream_id not in self._laststrid: + logger.warning('(%s) *ProtoControl* Protocols 2 and 3 are no longer supported',self._system) self.send_bcsq(_dst_id,_stream_id) self._laststrid.append(_stream_id) return