tray: fix crashlogs, restart from web

This commit is contained in:
Harvey Tindall
2021-08-16 23:01:08 +01:00
parent 9693ce3dcd
commit eb3489b34f
6 changed files with 26 additions and 93 deletions
+6 -5
View File
@@ -153,6 +153,12 @@ func test(app *appContext) {
func start(asDaemon, firstCall bool) {
RUNNING = true
defer func() { RUNNING = false }()
defer func() {
if r := recover(); r != nil {
Exit(r)
}
}()
// app encompasses essentially all useful functions.
app := new(appContext)
@@ -660,11 +666,6 @@ func printVersion() {
}
func main() {
defer func() {
if r := recover(); r != nil {
Exit(r)
}
}()
f := logOutput()
defer f()
printVersion()