Skip to content

Commit

Permalink
Bump socket number of tries from 10 to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
12ball authored and janie314 committed Feb 22, 2025
1 parent dc054ba commit 9806b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/mpv/mpv.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (mpv *MPV) restartProcess() error {
return err
}
var mpvConn *net.UnixConn
for i := 10; (err != nil || i == 10) && i >= 0; i-- {
for i := 100; (err != nil || i == 100) && i >= 0; i-- {
mpvConn, err = net.DialUnix("unix", nil, mpvUnixAddr)
if err != nil {
log.Println("Warning: InitUnixConn:", err)
Expand Down

0 comments on commit 9806b53

Please sign in to comment.