Skip to content

Commit

Permalink
Update src/logging.cc
Browse files Browse the repository at this point in the history
Co-authored-by: Sergiu Deitsch <sergiud@users.noreply.github.com>
  • Loading branch information
anpol and sergiud committed Aug 13, 2022
1 parent 85f3621 commit c0fc870
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/logging.cc
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,10 @@ LogDestination::~LogDestination() {
}

void LogDestination::SetLoggerImpl(base::Logger* logger) {
if (logger_ == logger) return;
if (logger_ == logger) {
// Prevent releasing currently held sink on reset
return;
}

if (logger_ && logger_ != &fileobject_) {
// Delete user-specified logger set via SetLogger().
Expand Down

0 comments on commit c0fc870

Please sign in to comment.