Changes between Version 9 and Version 10 of pjsip-doc/account


Ignore:
Timestamp:
May 31, 2018 9:24:07 AM (6 years ago)
Author:
nanang
Comment:

Add info about invoking Account::shutdown() in the beginning of Account derived class destructor

Legend:

Unmodified
Added
Removed
Modified
  • pjsip-doc/account

    v9 v10  
    2222    public: 
    2323        MyAccount() {} 
    24         ~MyAccount() {} 
     24        ~MyAccount() 
     25        { 
     26            // Invoke shutdown() first.. 
     27            shutdown(); 
     28            // ..before deleting any member objects. 
     29        } 
    2530 
    2631        virtual void onRegState(OnRegStateParam &prm) 
     
    5257- incoming instant message not from buddy 
    5358 
    54 Application needs to override the relevant callback methods in the derived class to handle these particular events. 
     59Application needs to override the relevant callback methods in the derived class to handle these particular events. Please also note that the derived class should call shutdown() in the beginning stage in its destructor, or alternatively application should call shutdown() before deleting the derived class instance. This is to avoid race condition between the derived class destructor and Account callbacks. 
    5560 
    5661If the events are not handled, default actions will be invoked: