Only run the status prohibit timer, if it has been set before.

This commit is contained in:
Pedro Alvarez 2021-11-26 12:59:13 +00:00 committed by Francisco Paisana
parent 14074f0430
commit a038c74cc0
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}