Skip to content

Commit

Permalink
Don't assert if Discord not shut down properly. Possible workaround for
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Sep 30, 2019
1 parent 360e138 commit 6a16764
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion UI/DiscordIntegration.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#include <ctime>
#include <cassert>

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 6a16764

Please sign in to comment.