实现 keepalive

This commit is contained in:
shikong 2025-01-25 17:06:55 +08:00
parent 5f07f5eac7
commit c76f5dcca7
Signed by: Shikong
GPG Key ID: BD85FF18B373C341

View File

@ -34,5 +34,8 @@ func StartKeepAlive(client *sipgo.Client) {
// StopKeepAlive 停止 keepalive 定时器
func StopKeepAlive() {
if keepaliveTimer == nil {
return
}
keepaliveTimer.Stop()
}