diff options
| author | Bond_009 <bond.009@outlook.com> | 2019-01-14 18:28:29 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2019-01-23 18:34:34 +0100 |
| commit | 8d9428ebdc463dcaa02cfa8daf91ab480f2ace6a (patch) | |
| tree | cd8388ed7e3bef057793f5938227684628a1f3ed /Jellyfin.Server/Program.cs | |
| parent | f6f0a8a481332f55a4af68ee776580cb506dd48c (diff) | |
Ensure DB exists
Diffstat (limited to 'Jellyfin.Server/Program.cs')
| -rw-r--r-- | Jellyfin.Server/Program.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs index 0510548b5..bdf8c4e94 100644 --- a/Jellyfin.Server/Program.cs +++ b/Jellyfin.Server/Program.cs @@ -99,7 +99,7 @@ namespace Jellyfin.Server new SystemEvents(), new NetworkManager(_loggerFactory, environmentInfo))) { - appHost.Init(); + await appHost.Init(); appHost.ImageProcessor.ImageEncoder = GetImageEncoder(fileSystem, appPaths, appHost.LocalizationManager); @@ -108,7 +108,6 @@ namespace Jellyfin.Server await appHost.RunStartupTasks(); // TODO: read input for a stop command - try { // Block main thread until shutdown @@ -167,7 +166,6 @@ namespace Jellyfin.Server { Directory.CreateDirectory(programDataPath); } - string configDir = Environment.GetEnvironmentVariable("JELLYFIN_CONFIG_DIR"); if (string.IsNullOrEmpty(configDir)) { |
