Protect Nest API from fail on stop

This commit is contained in:
Alex X
2024-04-21 07:57:54 +03:00
parent 7bd346c402
commit e4d970233e

View File

@@ -281,5 +281,8 @@ func (a *API) StartExtendStreamTimer() {
}
func (a *API) StopExtendStreamTimer() {
if a.extendTimer == nil {
return
}
a.extendTimer.Stop()
}