Commit 543dc1b7 authored by Tristan Matthews's avatar Tristan Matthews

* #9980: SIP: only cancel active keepAliveTimers

parent bbb06c9d
......@@ -702,12 +702,13 @@ void SIPAccount::startKeepAliveTimer() {
link_->registerKeepAliveTimer(keepAliveTimer_, keepAliveDelay_);
}
void SIPAccount::stopKeepAliveTimer() {
DEBUG("Stop keep alive timer %d for account %s", keepAliveTimer_.id, getAccountID().c_str());
keepAliveTimerActive_ = false;
link_->cancelKeepAliveTimer(keepAliveTimer_);
void SIPAccount::stopKeepAliveTimer()
{
if (keepAliveTimerActive_) {
DEBUG("Stop keep alive timer %d for account %s", keepAliveTimer_.id, getAccountID().c_str());
keepAliveTimerActive_ = false;
link_->cancelKeepAliveTimer(keepAliveTimer_);
}
}
pjsip_ssl_method SIPAccount::sslMethodStringToPjEnum(const std::string& method)
......
Markdown is supported
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