Commit 522e0499 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#3116] Delete sip voip link in decrementClients

parent 9f02da32
......@@ -289,8 +289,8 @@ void SIPVoIPLink::decrementClients (void)
if (_clients == 0) {
_debug("UserAgent: No SIP account anymore, terminate SIPVoIPLink");
terminate();
SIPVoIPLink::_instance=NULL;
// terminate();
delete SIPVoIPLink::_instance;
}
}
......@@ -321,8 +321,7 @@ SIPVoIPLink::terminate()
if (_evThread) {
_debug ("UserAgent: Deleting sip eventThread");
delete _evThread;
_evThread = NULL;
delete _evThread; _evThread = NULL;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment