Skip to content

Commit

Permalink
Merge pull request #206 from sonroyaalmerol/205-proxy-requires-a-rest…
Browse files Browse the repository at this point in the history
…art-occasionally-after-channel-drops

Fix err panic on runtime while proxying stream
  • Loading branch information
sonroyaalmerol authored Dec 31, 2024
2 parents 8a9a12a + dbb6fc9 commit 18283c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/proxy_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18283c8

Please sign in to comment.