Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Distortions81 committed Nov 10, 2024
1 parent 94dc9ac commit bd59313
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions support/factLauncher.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ func launchFactorio() {
}
}
/* Timer gets longer each reboot */
glob.RelaunchThrottle = (throt + 1)
glob.RelaunchThrottle = (glob.RelaunchThrottle + 1)

var err error
var tempargs []string
Expand Down Expand Up @@ -477,13 +477,11 @@ func launchFactorio() {
cwlog.DoLogCW("Killing previous factorio process!!!")
glob.FactorioCmd.Process.Kill()
glob.FactorioCmd = nil
return
}
if glob.FactorioCancel != nil {
cwlog.DoLogCW("Killing previous factorio context!!!")
glob.FactorioCancel()
glob.FactorioCancel = nil
return
}
glob.FactorioContext, glob.FactorioCancel = context.WithCancel(context.Background())

Expand Down

0 comments on commit bd59313

Please sign in to comment.