mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 14:37:44 +01:00
Removes channel factory disposal as it causes stack overflow on mono
This commit is contained in:
@@ -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>()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user