Removed server check for single node setups.
This commit is contained in:
parent
e40cf72757
commit
011f562e63
1 changed files with 13 additions and 20 deletions
|
|
@ -73,8 +73,6 @@ namespace LightReflectiveMirror
|
|||
var room = GetServerForID(address);
|
||||
|
||||
if (!useLoadBalancer)
|
||||
{
|
||||
if (room.HasValue && room.Value.relayInfo.Address == serverIP)
|
||||
{
|
||||
int pos = 0;
|
||||
_directConnected = false;
|
||||
|
|
@ -90,12 +88,7 @@ namespace LightReflectiveMirror
|
|||
_isClient = true;
|
||||
|
||||
clientToServerTransport.ClientSend(0, new System.ArraySegment<byte>(_clientSendBuffer, 0, pos));
|
||||
}
|
||||
else
|
||||
{
|
||||
OnClientDisconnected?.Invoke();
|
||||
Debug.LogWarning("LRM | Client tried to join server that doesnt exist!");
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue