Ignore:
Timestamp:
Apr 21, 2014 5:40:32 AM (10 years ago)
Author:
nanang
Message:

Fix #1759: Added check for call disconnection in ICE media transport creation.

File:
1 edited

Legend:

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

    r4750 r4820  
    852852    } 
    853853 
    854     if (async && call_med->tp_ready == PJ_EPENDING) { 
     854    if (!call_med->tp) { 
     855        /* Call has been disconnected, and media transports have been cleared 
     856         * (see ticket #1759). 
     857         */ 
     858        PJ_LOG(4,(THIS_FILE, "Media transport initialization cancelled " 
     859                             "because call has been disconnected")); 
     860        status = PJ_ECANCELLED; 
     861        goto on_error; 
     862    } else if (async && call_med->tp_ready == PJ_EPENDING) { 
    855863        return PJ_EPENDING; 
    856864    } else if (call_med->tp_ready != PJ_SUCCESS) { 
Note: See TracChangeset for help on using the changeset viewer.