Ignore:
Timestamp:
Mar 12, 2013 8:18:12 AM (11 years ago)
Author:
ming
Message:

Fixed #1641: Handling transport disconnection when the transaction state is still in null state

File:
1 edited

Legend:

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

    r4420 r4438  
    21772177        pjsip_transport_add_state_listener(tp, &tsx_tp_state_callback, tsx, 
    21782178                                            &tsx->tp_st_key); 
     2179        if (tp->is_shutdown) { 
     2180            pjsip_transport_state_info info; 
     2181 
     2182            pj_bzero(&info, sizeof(info)); 
     2183            info.user_data = tsx; 
     2184            info.status = PJSIP_SC_TSX_TRANSPORT_ERROR; 
     2185            tsx_tp_state_callback(tp, PJSIP_TP_STATE_DISCONNECTED, &info); 
     2186        } 
    21792187    } 
    21802188} 
Note: See TracChangeset for help on using the changeset viewer.