Ignore:
Timestamp:
Nov 29, 2013 12:33:05 AM (10 years ago)
Author:
bennylp
Message:

Fixed #1714: Workaround for stuck in TCP/TLS shutdown when another thread is destroying the transport

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_transport_tls.c

    r4537 r4661  
    184184        tls->close_reason = status; 
    185185 
    186     if (tls->base.is_shutdown) 
     186    if (tls->base.is_shutdown || tls->base.is_destroying) 
    187187        return; 
    188188 
     
    214214        (*state_cb)(&tls->base, PJSIP_TP_STATE_DISCONNECTED, &state_info); 
    215215    } 
     216 
     217    /* check again */ 
     218    if (tls->base.is_shutdown || tls->base.is_destroying) 
     219        return; 
    216220 
    217221    /* We can not destroy the transport since high level objects may 
Note: See TracChangeset for help on using the changeset viewer.