check if active state before stopping pdcp entity

master
Andre Puschmann 7 years ago
parent f92e0a88d9
commit 34d4017479

@ -53,9 +53,11 @@ void pdcp::init(srsue::rlc_interface_pdcp *rlc_, srsue::rrc_interface_pdcp *rrc_
void pdcp::stop() void pdcp::stop()
{ {
for(uint32_t i=0;i<SRSLTE_N_RADIO_BEARERS;i++) { for(uint32_t i=0;i<SRSLTE_N_RADIO_BEARERS;i++) {
if (pdcp_array[i].is_active()) {
pdcp_array[i].stop(); pdcp_array[i].stop();
} }
} }
}
void pdcp::reestablish() { void pdcp::reestablish() {
for(uint32_t i=0;i<SRSLTE_N_RADIO_BEARERS;i++) { for(uint32_t i=0;i<SRSLTE_N_RADIO_BEARERS;i++) {

Loading…
Cancel
Save