TBF-DL: fix misleading idle time check

The dl_tbf_idle_msec is uint32_t so it cannot be < 0.

Change-Id: Ic88cb4698bcb9be52a5179529f81b8728bf4f93f
This commit is contained in:
Max 2017-12-07 11:46:29 +01:00 committed by Harald Welte
parent 25a3ca4e59
commit 1a11d1db09
1 changed files with 1 additions and 1 deletions

View File

@ -1252,7 +1252,7 @@ bool gprs_rlcmac_dl_tbf::keep_open(unsigned fn) const
{
int keep_time_frames;
if (bts_data()->dl_tbf_idle_msec <= 0)
if (bts_data()->dl_tbf_idle_msec == 0)
return false;
keep_time_frames = msecs_to_frames(bts_data()->dl_tbf_idle_msec);