diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tbf_dl.cpp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp index 4739a500..01e6add0 100644 --- a/src/tbf_dl.cpp +++ b/src/tbf_dl.cpp @@ -821,20 +821,16 @@ int gprs_rlcmac_dl_tbf::maybe_start_new_window() set_state(GPRS_RLCMAC_WAIT_RELEASE); + /* start T3193 */ + tbf_timer_start(this, 3193, + bts_data()->t3193_msec / 1000, + (bts_data()->t3193_msec % 1000) * 1000); + /* check for LLC PDU in the LLC Queue */ - if (!have_data()) { - /* no message, start T3193, change state to RELEASE */ - LOGP(DRLCMACDL, LOGL_DEBUG, "- No new message, so we release.\n"); - /* start T3193 */ - tbf_timer_start(this, 3193, - bts_data()->t3193_msec / 1000, - (bts_data()->t3193_msec % 1000) * 1000); - - return 0; - } + if (have_data()) + /* we have more data so we will re-use this tbf */ + reuse_tbf(); - /* we have more data so we will re-use this tbf */ - reuse_tbf(); return 0; } |