Skip to content

Commit

Permalink
check for successful transition before trying transition again
Browse files Browse the repository at this point in the history
  • Loading branch information
lieuweberg committed Feb 24, 2024
1 parent 6f8dfd2 commit d90d3af
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,6 @@ func startApplication() {
err = storeData("lastVersion", version)

if !service.Interactive() {
err = tryServicelessTransition()
if err != nil {
log.Printf("Error trying serviceless transition: %s", err)
}

// This is not the first time launching this version, so if previously the transition worked we should now check for that and otherwise notify the user
if lastVersion == version {
log.Printf("Checking for different running rich-destiny.exe...")
Expand Down Expand Up @@ -233,6 +228,11 @@ func startApplication() {
},
})
}

err = tryServicelessTransition()
if err != nil {
log.Printf("Error trying serviceless transition: %s", err)
}
}

startWebServer()
Expand Down

0 comments on commit d90d3af

Please sign in to comment.