Skip to content
Snippets Groups Projects
Commit 3e79ff00 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

#9898: make sure account are unregistered when sflphone quit, add timeout on pending transaction

parent c524e9c9
No related branches found
No related tags found
No related merge requests found
......@@ -437,6 +437,10 @@ SIPVoIPLink::SIPVoIPLink() : sipTransport(endpt_, cp_, pool_), evThread_(this)
SIPVoIPLink::~SIPVoIPLink()
{
const int MAX_TIMEOUT_ON_LEAVING = 5;
for (int timeout = 0; pjsip_tsx_layer_get_tsx_count() and timeout < MAX_TIMEOUT_ON_LEAVING; timeout++)
sleep(1);
handlingEvents_ = false;
if (thread_) {
pj_thread_join(thread_);
......
......@@ -1180,7 +1180,7 @@ void
dbus_unregister(int pid)
{
GError *error = NULL;
org_sflphone_SFLphone_Instance_unregister(instance_proxy, pid, &error);
org_sflphone_SFLphone_Instance_unregister_async(instance_proxy, pid, NULL, NULL);
check_error(error);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment