From 12fe368e754098eaeeb17bb046e54e935548b4eb Mon Sep 17 00:00:00 2001 From: Damon To Date: Mon, 29 Jul 2024 22:55:14 +0800 Subject: [PATCH] fix: remove panic when watching modems fails --- internal/pkg/modem/manager.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/pkg/modem/manager.go b/internal/pkg/modem/manager.go index b6c83f4..f04b11d 100644 --- a/internal/pkg/modem/manager.go +++ b/internal/pkg/modem/manager.go @@ -51,7 +51,6 @@ func (m *Manager) watch() error { for { if err := m.watchModems(); err != nil { slog.Error("failed to watch modems", "error", err) - panic(err) } time.Sleep(1 * time.Second) }