]> git.deb.at Git - rhonda/impostor.git/commitdiff
Move recycle to the application
authorAeonLucid <aeonlucid@gmail.com>
Sun, 27 Sep 2020 00:40:07 +0000 (02:40 +0200)
committerAeonLucid <aeonlucid@gmail.com>
Sun, 27 Sep 2020 00:40:07 +0000 (02:40 +0200)
src/Impostor.Server/Net/Client.cs
submodules/Hazel-Networking

index f949134ca709198c52ee725d6ea3cbae5cbad053..56305b4fe4387f27145ad23203c0eaac2a58427e 100644 (file)
@@ -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)
index 40dc8dc105bde4163d12aa2e8f44001097dd6b85..7ba3d5bed5d2609d6db829228908ae8e81ee54ee 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 40dc8dc105bde4163d12aa2e8f44001097dd6b85
+Subproject commit 7ba3d5bed5d2609d6db829228908ae8e81ee54ee