diff --git a/ArchiSteamFarm/Core/ASF.cs b/ArchiSteamFarm/Core/ASF.cs index 4ed6fd37d..ff521a532 100644 --- a/ArchiSteamFarm/Core/ASF.cs +++ b/ArchiSteamFarm/Core/ASF.cs @@ -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; } diff --git a/ArchiSteamFarm/IPC/Requests/CommandRequest.cs b/ArchiSteamFarm/IPC/Requests/CommandRequest.cs index 0dbf6cd7b..d0d3af287 100644 --- a/ArchiSteamFarm/IPC/Requests/CommandRequest.cs +++ b/ArchiSteamFarm/IPC/Requests/CommandRequest.cs @@ -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() { } }