Update ASF.cs

This commit is contained in:
JustArchi
2020-05-27 10:30:47 +02:00
parent 713cd19f47
commit e0935f1e70

View File

@@ -298,8 +298,13 @@ namespace ArchiSteamFarm {
return null;
}
// We disable ArchiKestrel here as the update process moves the core files and might result in IPC crash
await ArchiKestrel.Stop().ConfigureAwait(false);
try {
// We disable ArchiKestrel here as the update process moves the core files and might result in IPC crash
// TODO: It might fail if the update was triggered from the API, this should be something to improve in the future, by changing the structure into request -> return response -> finish update
await ArchiKestrel.Stop().ConfigureAwait(false);
} catch (Exception e) {
ArchiLogger.LogGenericWarningException(e);
}
try {
#if !NETFRAMEWORK