summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pjsip/src/pjsua2/account.cpp5
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);
}
}