Changeset 1524


Ignore:
Timestamp:
Oct 26, 2007 4:17:03 AM (17 years ago)
Author:
bennylp
Message:

More ticket #399: on_request_complete() callback does not release the mutex in some cases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/nat_detect.c

    r1523 r1524  
    534534        end_session(sess, PJ_STATUS_FROM_STUN_CODE(PJ_STUN_SC_SERVER_ERROR), 
    535535                    PJ_STUN_NAT_TYPE_ERR_UNKNOWN); 
    536         return; 
     536        goto on_return; 
    537537    } 
    538538 
     
    557557 
    558558    if (test_completed(sess)<3 || test_completed(sess)!=test_executed(sess)) 
    559         return; 
     559        goto on_return; 
    560560 
    561561    /* Handle the test result according to RFC 3489 page 22: 
     
    749749    } 
    750750 
     751on_return: 
    751752    pj_mutex_unlock(sess->mutex); 
    752753} 
Note: See TracChangeset for help on using the changeset viewer.