Changeset 2135


Ignore:
Timestamp:
Jul 14, 2008 11:31:40 AM (16 years ago)
Author:
bennylp
Message:

Related to ticket #566: Crash when shutting down PJSUA-LIB and outgoing call in in progress and there is no answer from remote

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r2081 r2135  
    529529    /* Close media transports */ 
    530530    for (i=0; i<pjsua_var.ua_cfg.max_calls; ++i) { 
     531        if (pjsua_var.calls[i].med_tp_st != PJSUA_MED_TP_IDLE) { 
     532            pjsua_media_channel_deinit(i); 
     533        } 
    531534        if (pjsua_var.calls[i].med_tp) { 
    532535            (*pjsua_var.calls[i].med_tp->op->destroy)(pjsua_var.calls[i].med_tp); 
     
    11661169    } 
    11671170 
    1168     if (call->med_orig && call->med_tp != call->med_orig) { 
     1171    if (call->med_orig && call->med_tp && call->med_tp != call->med_orig) { 
    11691172        pjmedia_transport_close(call->med_tp); 
    11701173        call->med_tp = call->med_orig; 
Note: See TracChangeset for help on using the changeset viewer.