From 91aaa6ae2f778fe5ad204e99a720dd5a9fb014a9 Mon Sep 17 00:00:00 2001 From: Derek S <44935661+Derek-R-S@users.noreply.github.com> Date: Tue, 6 Apr 2021 22:13:36 -0500 Subject: [PATCH] Proper disconnect if room not found. --- .../Transport/LRM/LRMTransport/LightReflectiveMirrorTransport.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/UnityProject/Assets/Mirror/Runtime/Transport/LRM/LRMTransport/LightReflectiveMirrorTransport.cs b/UnityProject/Assets/Mirror/Runtime/Transport/LRM/LRMTransport/LightReflectiveMirrorTransport.cs index ad2a65e..20af507 100644 --- a/UnityProject/Assets/Mirror/Runtime/Transport/LRM/LRMTransport/LightReflectiveMirrorTransport.cs +++ b/UnityProject/Assets/Mirror/Runtime/Transport/LRM/LRMTransport/LightReflectiveMirrorTransport.cs @@ -340,6 +340,7 @@ namespace LightReflectiveMirror return relayServerList[i]; } + OnClientDisconnected?.Invoke(); throw new Exception("LRM | An attempt was made to connect to a server which does not exist!"); }