Fix prematurely closing events channel

pull/87/head
Slyghtning 2 years ago
parent 95c7b3d13e
commit 0fa439e7de

@ -71,6 +71,8 @@ func run(c *cli.Context) error {
}()
ps.Run(ctx, events)
close(events)
return nil
}

@ -34,7 +34,6 @@ func Run(ctx context.Context, app *app.App, sub chan *events.Event) error {
go ctrl.Listen(ctx, g, sub)
err = g.MainLoop()
close(sub)
return errors.WithStack(err)
}

Loading…
Cancel
Save