From a038c74cc0d85a41ef75a14d08d1f7469e5be65e Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Fri, 26 Nov 2021 12:59:13 +0000 Subject: [PATCH] Only run the status prohibit timer, if it has been set before. --- lib/src/rlc/rlc_am_nr.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/rlc/rlc_am_nr.cc b/lib/src/rlc/rlc_am_nr.cc index 4a3736c8f..a28ef0868 100644 --- a/lib/src/rlc/rlc_am_nr.cc +++ b/lib/src/rlc/rlc_am_nr.cc @@ -631,7 +631,10 @@ uint32_t rlc_am_nr_rx::get_status_pdu(rlc_am_nr_status_pdu_t* status, uint32_t m } if (max_len != UINT32_MAX) { - status_prohibit_timer.run(); // UINT32_MAX is used just to querry the status PDU length + // UINT32_MAX is used just to querry the status PDU length + if (status_prohibit_timer.is_valid()) { + status_prohibit_timer.run(); + } } return tmp_buf.N_bytes; }