From dbb6fc97fa0e45812d29918b2a2a4da2b23c1a08 Mon Sep 17 00:00:00 2001 From: Son Roy Almerol Date: Tue, 31 Dec 2024 13:47:59 -0500 Subject: [PATCH] fix err panic on runtime --- proxy/proxy_stream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/proxy_stream.go b/proxy/proxy_stream.go index 507ae40..5fb8dd3 100644 --- a/proxy/proxy_stream.go +++ b/proxy/proxy_stream.go @@ -160,7 +160,7 @@ func (instance *StreamInstance) ProxyStream(ctx context.Context, m3uIndex string contextSleep(ctx) case result.err != nil: lastErr = time.Now() - utils.SafeLogf("Error reading stream: %s\n", err.Error()) + utils.SafeLogf("Error reading stream: %s\n", result.err.Error()) returnStatus = 1 if timeoutSecond == 0 { statusChan <- 1