From 69f2201c445e4226ab46da9484666786d7818373 Mon Sep 17 00:00:00 2001 From: Robbe Bryssinck Date: Sun, 1 May 2022 21:39:06 +0200 Subject: [PATCH] fix: disconnect and reconnect crash --- Code/client/Games/Skyrim/TESObjectREFR.h | 2 +- Code/client/Services/Generic/OverlayClient.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/client/Games/Skyrim/TESObjectREFR.h b/Code/client/Games/Skyrim/TESObjectREFR.h index 1a1c76604..da68eac9e 100644 --- a/Code/client/Games/Skyrim/TESObjectREFR.h +++ b/Code/client/Games/Skyrim/TESObjectREFR.h @@ -97,7 +97,7 @@ struct TESObjectREFR : TESForm virtual void sub_62(); virtual void sub_63(); virtual void sub_64(); - virtual void sub_65(); + virtual void DetachHavok(); virtual void sub_66(); virtual void sub_67(); virtual void sub_68(); diff --git a/Code/client/Services/Generic/OverlayClient.cpp b/Code/client/Services/Generic/OverlayClient.cpp index 3d7fadc62..81c6dfa29 100644 --- a/Code/client/Services/Generic/OverlayClient.cpp +++ b/Code/client/Services/Generic/OverlayClient.cpp @@ -67,7 +67,7 @@ void OverlayClient::ProcessConnectMessage(CefRefPtr aEventArgs) void OverlayClient::ProcessDisconnectMessage() { - m_transport.Close(); + World::Get().GetRunner().Queue([]() { World::Get().GetTransport().Close(); }); } void OverlayClient::ProcessChatMessage(CefRefPtr aEventArgs)