diff --git a/src/sip/sipvoiplink.cpp b/src/sip/sipvoiplink.cpp index a9a1166a7d4ec1c7b2ad1acc0cd657e700728e2c..c25221979b75abd2ee4fd65c433806efdb82615e 100644 --- a/src/sip/sipvoiplink.cpp +++ b/src/sip/sipvoiplink.cpp @@ -617,12 +617,6 @@ SIPVoIPLink::~SIPVoIPLink() sipTransportBroker->shutdown(); - const int MAX_TIMEOUT_ON_LEAVING = 5; - for (int timeout = 0; - pjsip_tsx_layer_get_tsx_count() and timeout < MAX_TIMEOUT_ON_LEAVING; - timeout++) - std::this_thread::sleep_for(std::chrono::seconds(1)); - pjsip_tpmgr_set_state_cb(pjsip_endpt_get_tpmgr(endpt_), nullptr); sipTransportBroker.reset();