Skip to content

Commit

Permalink
fix(core): Add retry delay after unclean panel exit
Browse files Browse the repository at this point in the history
  • Loading branch information
pdf committed Mar 18, 2024
1 parent 922eacd commit 4515ab5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/hyprpanel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
const (
name = `hyprpanel`
crashTimeout = 2 * time.Second
crashRetry = 200 * time.Millisecond
crashCount = 3
)

Expand Down Expand Up @@ -206,10 +207,10 @@ func main() {
}
count = 0
timer.Reset(crashTimeout)
continue
default:
continue
}
time.Sleep(crashRetry)
continue
} else if err != nil && err == errReload {
continue
}
Expand Down

0 comments on commit 4515ab5

Please sign in to comment.