Update LRMTransportOverrides.cs
This commit is contained in:
parent
863156a0dc
commit
012c73bc49
1 changed files with 7 additions and 4 deletions
|
|
@ -107,10 +107,13 @@ namespace LightReflectiveMirror
|
||||||
{
|
{
|
||||||
_isClient = false;
|
_isClient = false;
|
||||||
|
|
||||||
|
// make sure we are even connected to a relay
|
||||||
|
if (Available())
|
||||||
|
{
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
_clientSendBuffer.WriteByte(ref pos, (byte)OpCodes.LeaveRoom);
|
_clientSendBuffer.WriteByte(ref pos, (byte)OpCodes.LeaveRoom);
|
||||||
|
|
||||||
clientToServerTransport.ClientSend(0, new ArraySegment<byte>(_clientSendBuffer, 0, pos));
|
clientToServerTransport.ClientSend(0, new ArraySegment<byte>(_clientSendBuffer, 0, pos));
|
||||||
|
}
|
||||||
|
|
||||||
if (_directConnectModule != null)
|
if (_directConnectModule != null)
|
||||||
_directConnectModule.ClientDisconnect();
|
_directConnectModule.ClientDisconnect();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue