reset PDCP entities

master
Andre Puschmann 6 years ago
parent 91492b87ef
commit 716b028023

@ -94,6 +94,7 @@ void pdcp::reset()
// destroy all bearers // destroy all bearers
pthread_rwlock_wrlock(&rwlock); pthread_rwlock_wrlock(&rwlock);
for (pdcp_map_t::iterator it = pdcp_array.begin(); it != pdcp_array.end(); ++it) { for (pdcp_map_t::iterator it = pdcp_array.begin(); it != pdcp_array.end(); ++it) {
it->second->reset();
delete(it->second); delete(it->second);
pdcp_array.erase(it); pdcp_array.erase(it);
} }

Loading…
Cancel
Save