Ignore:
Timestamp:
Mar 19, 2015 5:07:01 AM (9 years ago)
Author:
riza
Message:

Misc (re #1782): Check if the transport being shutdown in on_accept_complete and on_connect_complete callback

File:
1 edited

Legend:

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

    r4973 r5000  
    11801180    PJ_ASSERT_RETURN(new_ssock, PJ_TRUE); 
    11811181 
     1182    if (!listener->is_registered) 
     1183        return PJ_FALSE; 
     1184 
    11821185    PJ_LOG(4,(listener->factory.obj_name,  
    11831186              "TLS listener %.*s:%d: got incoming TLS connection " 
     
    12371240        pjsip_transport_shutdown(&tls->base); 
    12381241    } 
    1239  
    12401242    /* Notify transport state to application */ 
    12411243    state_cb = pjsip_tpmgr_get_state_cb(tls->base.tpmgr); 
     
    15551557 
    15561558    tls = (struct tls_transport*) pj_ssl_sock_get_user_data(ssock); 
     1559 
     1560    if (tls->base.is_shutdown || tls->base.is_destroying)  
     1561        return PJ_FALSE; 
    15571562 
    15581563    /* Check connect() status */ 
Note: See TracChangeset for help on using the changeset viewer.