Ignore:
Timestamp:
Apr 24, 2012 1:09:14 PM (13 years ago)
Author:
bennylp
Message:

Re #1474: merged r4054-r4079

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk

  • pjproject/trunk/pjsip/src/pjsip-simple/evsub.c

    r3753 r4082  
    18191819        pjsip_tx_data *tdata; 
    18201820        pj_status_t status; 
    1821         int next_refresh; 
    18221821 
    18231822        /* Only want to handle initial NOTIFY receive event. */ 
     
    18991898             pj_stricmp(&sub_state->sub_state, &STR_PENDING)==0)) 
    19001899        { 
    1901             next_refresh = sub_state->expires_param; 
    1902  
    1903         } else { 
    1904             next_refresh = sub->expires->ivalue; 
    1905         } 
    1906  
    1907         /* Update time */ 
    1908         update_expires(sub, next_refresh); 
    1909  
    1910         /* Start UAC refresh timer, only when we're not unsubscribing */ 
    1911         if (sub->expires->ivalue != 0) { 
    1912             unsigned timeout = (next_refresh > TIME_UAC_REFRESH) ? 
    1913                 next_refresh - TIME_UAC_REFRESH : next_refresh; 
     1900            int next_refresh = sub_state->expires_param; 
     1901            unsigned timeout; 
     1902 
     1903            update_expires(sub, next_refresh); 
     1904 
     1905            /* Start UAC refresh timer, only when we're not unsubscribing */ 
     1906            timeout = (next_refresh > TIME_UAC_REFRESH) ? 
     1907                        next_refresh - TIME_UAC_REFRESH : next_refresh; 
    19141908 
    19151909            PJ_LOG(5,(sub->obj_name, "Will refresh in %d seconds", timeout)); 
Note: See TracChangeset for help on using the changeset viewer.