From 6a1676413ee8bdbb53e0c133e02cf74a8950a13a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 30 Sep 2019 09:56:57 +0200 Subject: [PATCH] Don't assert if Discord not shut down properly. Possible workaround for #12140. --- UI/DiscordIntegration.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/UI/DiscordIntegration.cpp b/UI/DiscordIntegration.cpp index 41784abd1749..442a14b763e5 100644 --- a/UI/DiscordIntegration.cpp +++ b/UI/DiscordIntegration.cpp @@ -1,3 +1,4 @@ + #include #include @@ -39,7 +40,9 @@ static void handleDiscordError(int errCode, const char *message) { #endif Discord::~Discord() { - assert(!initialized_); + if (initialized_) { + ERROR_LOG(SYSTEM, "Discord destructor running though g_Discord.Shutdown() has not been called."); + } } bool Discord::IsEnabled() const {