Update LRMTransportOverrides.cs

This commit is contained in:
cxxpxr 2021-05-06 10:23:26 -04:00
parent 863156a0dc
commit 012c73bc49

View file

@ -107,10 +107,13 @@ namespace LightReflectiveMirror
{
_isClient = false;
// make sure we are even connected to a relay
if (Available())
{
int pos = 0;
_clientSendBuffer.WriteByte(ref pos, (byte)OpCodes.LeaveRoom);
clientToServerTransport.ClientSend(0, new ArraySegment<byte>(_clientSendBuffer, 0, pos));
}
if (_directConnectModule != null)
_directConnectModule.ClientDisconnect();