From 7b9799cb0cadd041fe32066471235e5bdc35f359 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 5 Jan 2022 15:30:25 +0000 Subject: [PATCH] fix packet counter 2 --- bridge_master.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bridge_master.py b/bridge_master.py index c4050c2..0e45dd3 100644 --- a/bridge_master.py +++ b/bridge_master.py @@ -1617,8 +1617,6 @@ class routerOBP(OPENBRIDGE): } - self.STATUS[_stream_id]['packets'] = self.STATUS[_stream_id]['packets'] +1 - # If we can, use the LC from the voice header as to keep all options intact if _frame_type == HBPF_DATA_SYNC and _dtype_vseq == HBPF_SLT_VHEAD: decoded = decode.voice_head_term(dmrpkt) @@ -1637,6 +1635,7 @@ class routerOBP(OPENBRIDGE): else: + self.STATUS[_stream_id]['packets'] = self.STATUS[_stream_id]['packets'] +1 #Finished stream handling# if '_fin' in self.STATUS[_stream_id]: if '_finlog' not in self.STATUS[_stream_id]: