Ignore:
Timestamp:
Jan 11, 2017 7:29:46 AM (3 years ago)
Author:
nanang
Message:

Fixed #1990:

  • Added check for possibility of premature failure in pj_turn_sock_alloc() after pj_turn_session_set_server() returns PJ_SUCCESS.
  • Added more logs on ICE initialization progress for future debugging.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/turn_sock.c

    r5474 r5521  
    429429        pj_grp_lock_release(turn_sock->grp_lock); 
    430430        return status; 
     431    } else if (!turn_sock->sess) { 
     432        /* TURN session may have been destroyed here, i.e: when DNS resolution 
     433         * completed synchronously and TURN allocation failed. 
     434         */ 
     435        PJ_LOG(4,(turn_sock->obj_name, "TURN session destroyed in setting " 
     436                                       "TURN server")); 
     437        pj_grp_lock_release(turn_sock->grp_lock); 
     438        return PJ_EGONE; 
    431439    } 
    432440 
Note: See TracChangeset for help on using the changeset viewer.