From: AeonLucid Date: Sun, 27 Sep 2020 00:40:07 +0000 (+0200) Subject: Move recycle to the application X-Git-Tag: v1.1.0~1^2~29 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=e428383ebe2b3102cebb3d222a3d0e27a322324c;p=rhonda%2Fimpostor.git Move recycle to the application --- diff --git a/src/Impostor.Server/Net/Client.cs b/src/Impostor.Server/Net/Client.cs index f949134..56305b4 100644 --- a/src/Impostor.Server/Net/Client.cs +++ b/src/Impostor.Server/Net/Client.cs @@ -87,6 +87,10 @@ namespace Impostor.Server.Net Logger.Error(ex, "Exception caught in client data handler."); Player.SendDisconnectReason(DisconnectReason.Custom, DisconnectMessages.Error); } + finally + { + e.Message.Recycle(); + } } private void OnMessageReceived(MessageReader message, SendOption sendOption) diff --git a/submodules/Hazel-Networking b/submodules/Hazel-Networking index 40dc8dc..7ba3d5b 160000 --- a/submodules/Hazel-Networking +++ b/submodules/Hazel-Networking @@ -1 +1 @@ -Subproject commit 40dc8dc105bde4163d12aa2e8f44001097dd6b85 +Subproject commit 7ba3d5bed5d2609d6db829228908ae8e81ee54ee