mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-12 22:50:39 +00:00
Do not crash on invalid IPC.config
Log error and continue without IPC instead
This commit is contained in:
@@ -534,15 +534,19 @@ internal static class ArchiKestrel {
|
||||
// Init history logger for /Api/Log usage
|
||||
Logging.InitHistoryLogger();
|
||||
|
||||
WebApplication webApplication = await CreateWebApplication().ConfigureAwait(false);
|
||||
WebApplication? webApplication = null;
|
||||
|
||||
try {
|
||||
// Start the server
|
||||
webApplication = await CreateWebApplication().ConfigureAwait(false);
|
||||
|
||||
await webApplication.StartAsync().ConfigureAwait(false);
|
||||
} catch (Exception e) {
|
||||
ASF.ArchiLogger.LogGenericException(e);
|
||||
|
||||
await webApplication.DisposeAsync().ConfigureAwait(false);
|
||||
if (webApplication != null) {
|
||||
await webApplication.DisposeAsync().ConfigureAwait(false);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user