Ignore:
Timestamp:
Sep 11, 2015 9:40:11 AM (9 years ago)
Author:
nanang
Message:

Re #1885: Fixed race condition in evsub scenario 1 (Subscription timeout vs subscription refresh).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-simple/evsub.c

    r4969 r5177  
    628628 
    629629    pjsip_dlg_inc_lock(sub->dlg); 
     630 
     631    /* If this timer entry has just been rescheduled or cancelled 
     632     * while waiting for dialog mutex, just return (see #1885 scenario 1). 
     633     */ 
     634    if (pj_timer_entry_running(entry) || entry->id == TIMER_TYPE_NONE) { 
     635        pjsip_dlg_dec_lock(sub->dlg); 
     636        return; 
     637    } 
    630638 
    631639    timer_id = entry->id; 
Note: See TracChangeset for help on using the changeset viewer.