Changeset 2812 for pjproject


Ignore:
Timestamp:
Jun 25, 2009 1:05:59 PM (15 years ago)
Author:
bennylp
Message:

Ticket #790: Buddy callback is still called even after buddy has been deleted (thanks Robert Cichielo for the report)

  • backported changes from #789
File:
1 edited

Legend:

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

    r2811 r2812  
    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.