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

Merge branch 'sipregistration'

parents a2da0724 3e79ff00
No related branches found
No related tags found
No related merge requests found
......@@ -459,6 +459,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