siptransport: do not force shutdown

Following the pjsip doc, pjsip_transport_dec_ref will shutdown the
transport if necessary. Moreover, when connectivity changes, the
transport is already with the state PJSIP_TP_STATE_SHUTDOWN.
If deleteTransport calls pjsip_transport_shutdown, the transport will
still be used by the sipaccount, but getUDPTransport will return a
unusable transport.

Change-Id: I25b7f0d282d62d28b7a49065d72e0c0de620b310
This commit is contained in:
Sébastien Blin
2018-11-28 17:44:49 -05:00
committed by Adrien Béraud
parent c16beb439a
commit 617de9b976

View File

@ -66,7 +66,6 @@ SipTransportDescr::toString() const
void
SipTransport::deleteTransport(pjsip_transport* t)
{
pjsip_transport_shutdown(t);
pjsip_transport_dec_ref(t);
}