reload email after lang is loaded

fixes #37.
This commit is contained in:
Harvey Tindall
2021-01-21 18:57:32 +00:00
parent b66654787c
commit cd2ea2e579
3 changed files with 9 additions and 5 deletions
+3
View File
@@ -524,6 +524,9 @@ func start(asDaemon, firstCall bool) {
app.info.Fatalf("Failed to load language files: %+v\n", err)
}
// Since email depends on language, the email reload in loadConfig won't work first time.
app.email = NewEmailer(app)
app.authJf, _ = mediabrowser.NewServer(serverType, server, "jfa-go", app.version, "auth", "auth", timeoutHandler, cacheTimeout)
app.loadStrftime()