This commit is contained in:
Archi
2024-02-12 15:24:41 +01:00
parent b5db0b511c
commit 9258819c84
2 changed files with 1 additions and 8 deletions

View File

@@ -116,7 +116,7 @@ public static class ASF {
await UpdateAndRestart().ConfigureAwait(false);
if (!Program.IgnoreUnsupportedEnvironment && !await ProtectAgainstCrashes().ConfigureAwait(false)) {
ArchiLogger.LogGenericError(Strings.ErrorTooManyCrashes);
ArchiLogger.LogFatalError(Strings.ErrorTooManyCrashes);
return true;
}

View File

@@ -19,7 +19,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
using System;
using System.ComponentModel.DataAnnotations;
using System.Diagnostics.CodeAnalysis;
using Newtonsoft.Json;
@@ -35,12 +34,6 @@ public sealed class CommandRequest {
[Required]
public string Command { get; private set; } = "";
internal CommandRequest(string command) {
ArgumentException.ThrowIfNullOrEmpty(command);
Command = command;
}
[JsonConstructor]
private CommandRequest() { }
}