lib/syncthing: Prevent hangup on error during startup (fixes #6043) (#6047)

This commit is contained in:
Simon Frei
2019-10-16 10:10:42 +02:00
committed by GitHub
parent 7b33294955
commit b8907b49f9
3 changed files with 90 additions and 29 deletions

View File

@@ -647,7 +647,9 @@ func syncthingMain(runtimeOptions RuntimeOptions) {
}
}
app.Start()
if err := app.Start(); err != nil {
os.Exit(int(syncthing.ExitError))
}
cleanConfigDirectory()