Protect Nest API from fail on stop
This commit is contained in:
@@ -281,5 +281,8 @@ func (a *API) StartExtendStreamTimer() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (a *API) StopExtendStreamTimer() {
|
func (a *API) StopExtendStreamTimer() {
|
||||||
|
if a.extendTimer == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
a.extendTimer.Stop()
|
a.extendTimer.Stop()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user