From e4d970233e5aa6dc311a2cdb0a9da25184593143 Mon Sep 17 00:00:00 2001 From: Alex X Date: Sun, 21 Apr 2024 07:57:54 +0300 Subject: [PATCH] Protect Nest API from fail on stop --- pkg/nest/api.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/nest/api.go b/pkg/nest/api.go index 035f1546..5e0d3407 100644 --- a/pkg/nest/api.go +++ b/pkg/nest/api.go @@ -281,5 +281,8 @@ func (a *API) StartExtendStreamTimer() { } func (a *API) StopExtendStreamTimer() { + if a.extendTimer == nil { + return + } a.extendTimer.Stop() }