Changeset 3873


Ignore:
Timestamp:
Oct 28, 2011 5:07:22 AM (8 years ago)
Author:
bennylp
Message:

Fixed #1407: Deadlock in initial resolution of STUN server

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjsip/src/pjsua-lib/pjsua_core.c

    r3830 r3873  
    12641264         */ 
    12651265        if (wait) { 
    1266             while (pjsua_var.stun_status == PJ_EPENDING) 
    1267                 pjsua_handle_events(10); 
     1266            while (pjsua_var.stun_status == PJ_EPENDING) { 
     1267                if (pjsua_var.thread[0] == NULL) 
     1268                    pjsua_handle_events(10); 
     1269                else 
     1270                    pj_thread_sleep(10); 
     1271            } 
    12681272        } 
    12691273    } 
Note: See TracChangeset for help on using the changeset viewer.