Ignore:
Timestamp:
Oct 12, 2009 1:27:40 AM (10 years ago)
Author:
bennylp
Message:

Related to ticket #411 (Cannot update account presence's status while previous PUBLISH is in progress):

  • Crash in timer if publication session is terminated prematurely. To reproduce: publish two events in quick successions, e.g. by pressing "t" in pjsua couple of times. The publication session will be terminated with PJ_EBUSY status, and crash may occur when timer heap is polled.
File:
1 edited

Legend:

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

    r2754 r2939  
    175175        pubc->cb = NULL; 
    176176    } else { 
     177        /* Cancel existing timer, if any */ 
     178        if (pubc->timer.id != 0) { 
     179            pjsip_endpt_cancel_timer(pubc->endpt, &pubc->timer); 
     180            pubc->timer.id = 0; 
     181        } 
     182 
    177183        pjsip_endpt_release_pool(pubc->endpt, pubc->pool); 
    178184    } 
Note: See TracChangeset for help on using the changeset viewer.