Ignore:
Timestamp:
Apr 14, 2009 3:11:23 PM (16 years ago)
Author:
bennylp
Message:

Ticket #789: don't call buddy callback after buddy has been deleted (thanks Robert Cichielo for the report)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c

    r2593 r2596  
    390390    PJSUA_LOCK(); 
    391391 
     392    /* Not interested with further events for this buddy */ 
     393    if (pjsua_var.buddy[buddy_id].sub) { 
     394        pjsip_evsub_set_mod_data(pjsua_var.buddy[buddy_id].sub,  
     395                                 pjsua_var.mod.id, NULL); 
     396    } 
     397 
    392398    /* Remove buddy */ 
    393399    pjsua_var.buddy[buddy_id].uri.slen = 0; 
Note: See TracChangeset for help on using the changeset viewer.