Skip to content

Commit

Permalink
Protect Nest API from fail on stop
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Apr 21, 2024
1 parent 7bd346c commit e4d9702
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/nest/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,5 +281,8 @@ func (a *API) StartExtendStreamTimer() {
}

func (a *API) StopExtendStreamTimer() {
if a.extendTimer == nil {
return
}
a.extendTimer.Stop()
}

0 comments on commit e4d9702

Please sign in to comment.