Changeset 4368 for pjproject


Ignore:
Timestamp:
Feb 21, 2013 9:53:28 PM (12 years ago)
Author:
bennylp
Message:

Re #1617: prevent TURN session from sending anything once it is in deallocating state

File:
1 edited

Legend:

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

    r4360 r4368  
    19561956        pj_bool_t pkt_sent = PJ_FALSE; 
    19571957 
     1958        if (sess->state >= PJ_TURN_STATE_DEALLOCATING) { 
     1959            /* Ignore if we're deallocating */ 
     1960            goto on_return; 
     1961        } 
     1962 
    19581963        pj_gettimeofday(&now); 
    19591964 
     
    20342039    } 
    20352040 
     2041on_return: 
    20362042    pj_grp_lock_release(sess->grp_lock); 
    20372043} 
Note: See TracChangeset for help on using the changeset viewer.