From 1f04c37a05808ff191f6996c412419185ec0198c Mon Sep 17 00:00:00 2001 From: Rebecca Johns <63025235+slash-under@users.noreply.github.com> Date: Thu, 29 Sep 2022 23:11:43 -0400 Subject: [PATCH] Remove wrapper to UnloadLevel call to fix crash Fixes #291 --- src/csm/Networking/Client.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/csm/Networking/Client.cs b/src/csm/Networking/Client.cs index 9e02a529..7f73ba25 100644 --- a/src/csm/Networking/Client.cs +++ b/src/csm/Networking/Client.cs @@ -187,11 +187,8 @@ public void Disconnect() if (needsUnload) { - Singleton.instance.m_ThreadingWrapper.QueueMainThread(() => - { - // Go back to the main menu after disconnecting - Singleton.instance.UnloadLevel(); - }); + // Go back to the main menu after disconnecting + Singleton.instance.UnloadLevel(); } Log.Info("Disconnected from server");