Skip to content
Snippets Groups Projects
Commit 543dc1b7 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #9980: SIP: only cancel active keepAliveTimers

parent bbb06c9d
No related branches found
No related tags found
No related merge requests found
...@@ -702,13 +702,14 @@ void SIPAccount::startKeepAliveTimer() { ...@@ -702,13 +702,14 @@ void SIPAccount::startKeepAliveTimer() {
link_->registerKeepAliveTimer(keepAliveTimer_, keepAliveDelay_); link_->registerKeepAliveTimer(keepAliveTimer_, keepAliveDelay_);
} }
void SIPAccount::stopKeepAliveTimer() { void SIPAccount::stopKeepAliveTimer()
{
if (keepAliveTimerActive_) {
DEBUG("Stop keep alive timer %d for account %s", keepAliveTimer_.id, getAccountID().c_str()); DEBUG("Stop keep alive timer %d for account %s", keepAliveTimer_.id, getAccountID().c_str());
keepAliveTimerActive_ = false; keepAliveTimerActive_ = false;
link_->cancelKeepAliveTimer(keepAliveTimer_); link_->cancelKeepAliveTimer(keepAliveTimer_);
} }
}
pjsip_ssl_method SIPAccount::sslMethodStringToPjEnum(const std::string& method) pjsip_ssl_method SIPAccount::sslMethodStringToPjEnum(const std::string& method)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment