Skip to content

Commit

Permalink
Fix potential crash in logging
Browse files Browse the repository at this point in the history
Doesn't happen for me for some reason, but does for Nemoumbra.
  • Loading branch information
hrydgard committed Jul 29, 2024
1 parent 25a2353 commit 2e74efb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Common/Log/ConsoleListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ ConsoleListener::ConsoleListener() : hidden_(true) {

_dbg_assert_(!g_Initialized);
g_Initialized = true;

logPendingReadPos_.store(0);
logPendingWritePos_.store(0);
}

ConsoleListener::~ConsoleListener() {
Expand Down

1 comment on commit 2e74efb

@JeffreyProMax
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fascinating 😇🤭😋😍

Please sign in to comment.