Skip to content

Commit

Permalink
Merge pull request #615 from muflihun/develop
Browse files Browse the repository at this point in the history
update fix
  • Loading branch information
abumq authored Feb 23, 2018
2 parents a7b9d65 + a8b0bb0 commit e9dc1ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/easylogging++.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2119,8 +2119,10 @@ namespace base {
// DefaultLogDispatchCallback

void DefaultLogDispatchCallback::handle(const LogDispatchData* data) {
#if defined(ELPP_THREAD_SAFE)
LogDispatchCallback::handle(data);
base::threading::ScopedLock scopedLock(fileHandle(data));
#endif
m_data = data;
dispatch(m_data->logMessage()->logger()->logBuilder()->build(m_data->logMessage(),
m_data->dispatchAction() == base::DispatchAction::NormalLog));
Expand Down

0 comments on commit e9dc1ec

Please sign in to comment.