trx_rate_ctr: Fix locking wrong mutex

It was notcied due to sometimes causing deadlock at shutdown time.

Fixes: 92ba59dacf
Change-Id: I49bea4b0ae469794b5c80ee8fa4f275914a5194c
This commit is contained in:
Pau Espin 2020-07-10 17:20:45 +02:00
parent c62a05140c
commit 032c1d8da9
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ static int trx_rate_ctr_timerfd_cb(struct osmo_fd *ofd, unsigned int what) {
size_t chan;
struct rate_ctr *ctr;
LOGC(DMAIN, NOTICE) << "Main thread is updating Transceiver counters";
dev_rate_ctr_mutex.lock();
trx_rate_ctr_mutex.lock();
for (chan = 0; chan < chan_len; chan++) {
if (trx_ctrs_pending[chan].chan == PENDING_CHAN_NONE)
continue;