Ignore:
Timestamp:
Nov 13, 2012 8:46:42 AM (11 years ago)
Author:
bennylp
Message:

Re #1562: PJSUA-LIB shutdown operation may block for a long time if system time is modified while the shutdown is in progress. Also fixed similar issue in STUN client.

File:
1 edited

Legend:

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

    r4262 r4297  
    10761076    pj_time_val timeout, now; 
    10771077 
    1078     pj_gettimeofday(&timeout); 
     1078    pj_gettickcount(&timeout); 
    10791079    timeout.msec += msec; 
    10801080    pj_time_val_normalize(&timeout); 
     
    10851085        while (pjsua_handle_events(10) > 0 && i > 0) 
    10861086            --i; 
    1087         pj_gettimeofday(&now); 
     1087        pj_gettickcount(&now); 
    10881088    } while (PJ_TIME_VAL_LT(now, timeout)); 
    10891089} 
Note: See TracChangeset for help on using the changeset viewer.