From 481afd1c4d06864c3133e1093cd4784147e81423 Mon Sep 17 00:00:00 2001 From: Mikhail Mitrofanov Date: Fri, 14 Mar 2025 13:36:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=B0=D1=81=D0=B8=D0=BD=D1=85=D1=80=D0=BE=D0=BD=D0=BD?= =?UTF-8?q?=D0=BE=D0=B3=D0=BE=20=D1=80=D0=B5=D0=B7=D1=83=D0=BB=D1=8C=D1=82?= =?UTF-8?q?=D0=B0=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mROA/Implementation/Frontend/RequestExtractor.cs | 5 ++++- mROA/Implementation/NetworkMessage.cs | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mROA/Implementation/Frontend/RequestExtractor.cs b/mROA/Implementation/Frontend/RequestExtractor.cs index 032a682..c810cb1 100644 --- a/mROA/Implementation/Frontend/RequestExtractor.cs +++ b/mROA/Implementation/Frontend/RequestExtractor.cs @@ -137,10 +137,13 @@ namespace mROA.Implementation.Frontend var resultType = result switch { FinalCommandExecution => MessageType.FinishedCommandExecution, - AsyncCommandExecution => MessageType.AsyncCommandExecution, ExceptionCommandExecution => MessageType.ExceptionCommandExecution, _ => MessageType.Unknown }; + if (resultType == MessageType.Unknown) + { + return; + } _representationModule!.PostCallMessage(request.Id, resultType, result, result.GetType()); } diff --git a/mROA/Implementation/NetworkMessage.cs b/mROA/Implementation/NetworkMessage.cs index 9522bea..e610586 100644 --- a/mROA/Implementation/NetworkMessage.cs +++ b/mROA/Implementation/NetworkMessage.cs @@ -20,7 +20,6 @@ namespace mROA.Implementation Unknown, FinishedCommandExecution, ExceptionCommandExecution, - AsyncCommandExecution, CallRequest, IdAssigning, CancelRequest,