diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-09-20 19:05:05 +0200 |
---|---|---|
committer | pespin <pespin@sysmocom.de> | 2021-09-23 10:00:24 +0000 |
commit | eab7068d5865e48359d88b3c11f87575dac74d92 (patch) | |
tree | 9637f121f736dd170d823f1be400292848f03e14 | |
parent | 4444262a6ab1e1e231ea81c4ec990f1a1f571a1f (diff) |
trx_if: delete retrans timer when flushing the Tx queue
Change-Id: Ic31dc5629ed950f3b4b8feb9917d11779696f6eb
-rw-r--r-- | src/osmo-bts-trx/trx_if.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c index 533f7c89..c4b00fd4 100644 --- a/src/osmo-bts-trx/trx_if.c +++ b/src/osmo-bts-trx/trx_if.c @@ -1203,6 +1203,10 @@ void trx_if_flush(struct trx_l1h *l1h) } talloc_free(l1h->last_acked); l1h->last_acked = NULL; + + /* Tx queue is now empty, so there's no point in keeping the retrans timer armed: */ + if (osmo_timer_pending(&l1h->trx_ctrl_timer)) + osmo_timer_del(&l1h->trx_ctrl_timer); } /*! close the TRX for given handle (data + control socket) */ |