fix: #3704 remove old fix for #2353 which caused log spam and isn't needed anymore since the original Mirror issue is long gone

This commit is contained in:
mischa 2023-12-23 22:05:16 +01:00
parent 4caa831bdb
commit 0d64d4718f

View File

@ -187,19 +187,6 @@ public void Send(ArraySegment<byte> segment, KcpChannel channel)
SendData(segment, channel);
}
public override void Disconnect()
{
// only if connected
// otherwise we end up in a deadlock because of an open Mirror bug:
// https://github.com/vis2k/Mirror/issues/2353
if (!connected) return;
// call Disconnect and let the connection handle it.
// DO NOT set it to null yet. it needs to be updated a few more
// times first. let the connection handle it!
base.Disconnect();
}
// insert raw IO. usually from socket.Receive.
// offset is useful for relays, where we may parse a header and then
// feed the rest to kcp.