Skip to content

Commit

Permalink
Merge pull request #66 from sonroyaalmerol/fix-endless-loop
Browse files Browse the repository at this point in the history
fix: replace break with return
  • Loading branch information
sonroyaalmerol committed Jul 19, 2024
2 parents 4f970f8 + ddc9540 commit 7486412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stream_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func streamHandler(w http.ResponseWriter, r *http.Request, db *database.Instance
case <-ctx.Done():
log.Printf("Client disconnected: %s\n", r.RemoteAddr)
resp.Body.Close()
break
return
default:
exitStatus := make(chan int)
go proxyStream(selectedUrl, resp, r, w, exitStatus)
Expand Down

0 comments on commit 7486412

Please sign in to comment.