Ignore:
Timestamp:
Feb 21, 2013 11:26:35 AM (12 years ago)
Author:
bennylp
Message:

Fixed #1617: major synchronization fixes in PJNATH with incorporation of group lock to avoid deadlock and crashes due to race conditions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath-test/stun_sock_test.c

    r3553 r4360  
    299299    pj_str_t srv_addr; 
    300300    pj_time_val timeout, t; 
    301     int ret = 0; 
     301    int i, ret = 0; 
    302302    pj_status_t status; 
    303303 
     
    360360    destroy_server(srv); 
    361361    destroy_client(client); 
     362    for (i=0; i<7; ++i) 
     363        handle_events(cfg, 50); 
    362364    return ret; 
    363365} 
     
    374376    pj_str_t srv_addr; 
    375377    pj_time_val timeout, t; 
    376     int ret = 0; 
     378    int i, ret = 0; 
    377379    pj_status_t status; 
    378380 
     
    427429    destroy_server(srv); 
    428430    destroy_client(client); 
     431    for (i=0; i<7; ++i) 
     432        handle_events(cfg, 50); 
    429433    return ret; 
    430434} 
     
    441445    pj_str_t srv_addr; 
    442446    pj_time_val timeout, t; 
    443     int ret = 0; 
     447    int i, ret = 0; 
    444448    pj_status_t status; 
    445449 
     
    792796    destroy_server(srv); 
    793797    destroy_client(client); 
     798    for (i=0; i<7; ++i) 
     799        handle_events(cfg, 50); 
    794800    return ret; 
    795801} 
Note: See TracChangeset for help on using the changeset viewer.