apps/gophers: correct inverted logic

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-05-12 17:43:23 +02:00
parent 31bec932d1
commit 84f80711dc
+1 -1
View File
@@ -189,7 +189,7 @@ func (a *App) run() error {
}
}
case app.ChangeStage:
if e.Stage <= app.StagePaused {
if e.Stage >= app.StageRunning {
if a.ctxCancel == nil {
a.ctx, a.ctxCancel = context.WithCancel(context.Background())
}