From 3203e9fbc6045aead865eb1615c960c69f2ea0f1 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Tue, 28 Nov 2017 14:37:20 -0500 Subject: [PATCH] Removes channel factory disposal as it causes stack overflow on mono --- TGS.Interface/ServerInterface.cs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/TGS.Interface/ServerInterface.cs b/TGS.Interface/ServerInterface.cs index 6e00bfd631..de77d54432 100644 --- a/TGS.Interface/ServerInterface.cs +++ b/TGS.Interface/ServerInterface.cs @@ -284,7 +284,6 @@ namespace TGS.Interface var cf = I.Value; try { - cf.Closed += ChannelFactory_Closed; cf.Close(); } catch @@ -310,16 +309,6 @@ namespace TGS.Interface return false; } - /// - /// Disposes a closed - /// - /// The channel factory that was closed - /// The event arguments - static void ChannelFactory_Closed(object sender, EventArgs e) - { - (sender as IDisposable).Dispose(); - } - /// public T GetComponent() {