diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-11-08 12:54:49 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-11-08 13:24:20 +0100 |
commit | de0eeafd2e6261fbb5e12bc1a964e43fe211f070 (patch) | |
tree | abc99f5ea1e302d6613daf873fd9ce22b19a0388 | |
parent | 063296883f32d8b5e5ed5d18366b4ce1f02b30ef (diff) |
tbf: Set m_created_ts in constructor
This way the timestamp is also set for dummy reject TBFs. For other
TBFs, setup() is called immediatelly after calling the constructor, so
we are fine too.
Change-Id: I2966ec7f3f9161d528a173d94797b72d1398c747
-rw-r--r-- | src/tbf.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tbf.cpp b/src/tbf.cpp index 2d6139be..4bd87dd2 100644 --- a/src/tbf.cpp +++ b/src/tbf.cpp @@ -137,6 +137,8 @@ gprs_rlcmac_tbf::gprs_rlcmac_tbf(struct gprs_rlcmac_bts *bts_, GprsMs *ms, gprs_ m_llc.init(); m_name_buf[0] = '\0'; + + m_created_ts = time(NULL); } @@ -657,7 +659,6 @@ int gprs_rlcmac_tbf::setup(int8_t use_trx, bool single_slot) if (ms_mode(m_ms) != GPRS) enable_egprs(); - m_created_ts = time(NULL); /* select algorithm */ rc = the_pcu->alloc_algorithm(bts, this, single_slot, use_trx); /* if no resource */ |