Removes channel factory disposal as it causes stack overflow on mono

This commit is contained in:
Cyberboss
2017-11-28 14:37:20 -05:00
parent af4ae97e93
commit 3203e9fbc6
-11
View File
@@ -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;
}
/// <summary>
/// Disposes a closed <see cref="ChannelFactory"/>
/// </summary>
/// <param name="sender">The channel factory that was closed</param>
/// <param name="e">The event arguments</param>
static void ChannelFactory_Closed(object sender, EventArgs e)
{
(sender as IDisposable).Dispose();
}
/// <inheritdoc />
public T GetComponent<T>()
{