diff options
Diffstat (limited to 'cmd/platform/server.go')
-rw-r--r-- | cmd/platform/server.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/platform/server.go b/cmd/platform/server.go index ec753c837..7ee7097e7 100644 --- a/cmd/platform/server.go +++ b/cmd/platform/server.go @@ -64,7 +64,9 @@ func runServer(configFileLocation string) { l4g.Error("Problem with file storage settings: " + err.Error()) } - a := app.Global() + a := app.New() + defer a.Shutdown() + a.NewServer() a.InitStores() a.Srv.Router = api.NewRouter() @@ -161,8 +163,6 @@ func runServer(configFileLocation string) { a.Jobs.StopSchedulers() a.Jobs.StopWorkers() - - a.StopServer() } func runSecurityJob(a *app.App) { |