diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2016-10-21 07:40:47 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2016-10-21 07:40:47 +0000 |
commit | 257149c5267132a9a4e5047da6965d671c0edacb (patch) | |
tree | 8867937f56f7a899c49440b41780b1639150df8e | |
parent | 65dcb4b3f16706c10ecaffe9af27e50898375a6a (diff) |
Misc (re #1945): Fixed false error message "cannot find Account.." when deleting PJSUA2 Account (thanks Kal for the report).
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5466 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjsip/src/pjsua2/account.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pjsip/src/pjsua2/account.cpp b/pjsip/src/pjsua2/account.cpp index ca3adeaa..33a4916c 100644 --- a/pjsip/src/pjsua2/account.cpp +++ b/pjsip/src/pjsua2/account.cpp @@ -682,7 +682,10 @@ Account::~Account() delete b; /* this will remove itself from the list */ } - pjsua_acc_set_user_data(id, NULL); + // This caused error message of "Error: cannot find Account.." + // when Endpoint::on_reg_started() is called for unregistration. + //pjsua_acc_set_user_data(id, NULL); + pjsua_acc_del(id); } } |