diff --git a/CoreRemoting/RemotingSession.cs b/CoreRemoting/RemotingSession.cs index 90c8724..0374909 100644 --- a/CoreRemoting/RemotingSession.cs +++ b/CoreRemoting/RemotingSession.cs @@ -244,10 +244,10 @@ private void OnReceiveMessage(byte[] rawMessage) _currentlyProcessedMessagesCounter.AddCount(1); - var message = _server.Serializer.Deserialize(rawMessage); - try { + var message = _server.Serializer.Deserialize(rawMessage); + switch (message.MessageType.ToLower()) { case "auth":