RLC returns zero buffer during suspended

This commit is contained in:
Ismael Gomez 2020-03-10 15:44:36 +01:00 committed by Xavier Arteaga
parent f2e1bfa699
commit d17a9d2ab1
1 changed files with 5 additions and 1 deletions

View File

@ -279,7 +279,11 @@ uint32_t rlc::get_buffer_state(uint32_t lcid)
pthread_rwlock_rdlock(&rwlock); pthread_rwlock_rdlock(&rwlock);
if (valid_lcid(lcid)) { if (valid_lcid(lcid)) {
ret = rlc_array.at(lcid)->get_buffer_state(); if (rlc_array.at(lcid)->is_suspended()) {
ret = 0;
} else {
ret = rlc_array.at(lcid)->get_buffer_state();
}
} }
pthread_rwlock_unlock(&rwlock); pthread_rwlock_unlock(&rwlock);