mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +00:00
apps/gophers: correct inverted logic
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -189,7 +189,7 @@ func (a *App) run() error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
case app.ChangeStage:
|
case app.ChangeStage:
|
||||||
if e.Stage <= app.StagePaused {
|
if e.Stage >= app.StageRunning {
|
||||||
if a.ctxCancel == nil {
|
if a.ctxCancel == nil {
|
||||||
a.ctx, a.ctxCancel = context.WithCancel(context.Background())
|
a.ctx, a.ctxCancel = context.WithCancel(context.Background())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user