Changeset 5307 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
- Timestamp:
- May 19, 2016 4:30:05 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r5297 r5307 1206 1206 result.status = sess->status; 1207 1207 result.name = sess->srv[sess->idx]; 1208 result.index = sess->idx; 1208 1209 pj_memcpy(&result.addr, &sess->addr, sizeof(result.addr)); 1209 1210 sess->has_result = PJ_TRUE; … … 1509 1510 if ((result->status == PJ_SUCCESS) && (pjsua_var.ua_cfg.stun_srv_cnt>0)) { 1510 1511 pj_memcpy(&pjsua_var.stun_srv, &result->addr, sizeof(result->addr)); 1512 pjsua_var.stun_srv_idx = result->index; 1511 1513 1512 1514 /* Perform NAT type detection if not yet */ … … 1555 1557 */ 1556 1558 if (wait) { 1557 while (pjsua_var.stun_status == PJ_EPENDING) { 1559 pj_bool_t has_pjsua_lock = PJSUA_LOCK_IS_LOCKED(); 1560 1561 if (has_pjsua_lock) 1562 PJSUA_UNLOCK(); 1563 1564 while (pjsua_var.stun_status == PJ_EPENDING) { 1558 1565 /* If there is no worker thread or 1559 1566 * the function is called from the only worker thread, … … 1569 1576 } 1570 1577 } 1578 if (has_pjsua_lock) 1579 PJSUA_LOCK(); 1571 1580 } 1572 1581 }
Note: See TracChangeset
for help on using the changeset viewer.