Skip to content

Commit

Permalink
fix(host): Shutdown cleanly on hypripc channel close
Browse files Browse the repository at this point in the history
  • Loading branch information
pdf committed Mar 11, 2024
1 parent 913f0ba commit 0837e58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/hyprpanel/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ func (h *host) watch(hyprEvtCh <-chan *eventv1.Event) {
case <-h.quitCh:
return
case evt := <-hyprEvtCh:
if evt == nil {
h.log.Error(`Received empty hypr event`)
continue
}
h.log.Trace(`Received hypr event`, `kind`, evt.Kind)
for _, panel := range h.panels {
panel.Notify(evt)
Expand Down

0 comments on commit 0837e58

Please sign in to comment.