Skip to content

Commit

Permalink
check for dbus channel open and fix initialActorError logging
Browse files Browse the repository at this point in the history
  • Loading branch information
zackattack01 committed Jul 9, 2024
1 parent 07a5339 commit 4f6148c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion ee/desktop/user/notify/notify_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ func (d *dbusNotifier) Listen() error {

for {
select {
case signal := <-d.signal:
case signal, open := <-d.signal:
if !open {
return fmt.Errorf("dbus signal channel closed, cannot proceed")
}

if signal == nil || signal.Name != signalActionInvoked {
continue
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/rungroup/rungroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ func (g *Group) Run() error {

g.slogger.Log(context.TODO(), slog.LevelInfo,
"received interrupt error from first actor -- shutting down other actors",
"err", initialActorErr,
"err", initialActorErr.err,
"error_source", initialActorErr.errorSourceName,
)

defer g.slogger.Log(context.TODO(), slog.LevelDebug,
Expand Down

0 comments on commit 4f6148c

Please sign in to comment.