Ignore:
Timestamp:
Oct 31, 2011 10:31:23 AM (11 years ago)
Author:
ming
Message:

Re #1395: Backport of PJSIP 1.x branch into PJSIP 2.0 trunk

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk

  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r3841 r3878  
    13221322         */ 
    13231323        if (wait) { 
    1324             while (pjsua_var.stun_status == PJ_EPENDING) 
    1325                 pjsua_handle_events(10); 
     1324            while (pjsua_var.stun_status == PJ_EPENDING) { 
     1325                if (pjsua_var.thread[0] == NULL) 
     1326                    pjsua_handle_events(10); 
     1327                else 
     1328                    pj_thread_sleep(10); 
     1329            } 
    13261330        } 
    13271331    } 
Note: See TracChangeset for help on using the changeset viewer.