Skip to content

Commit

Permalink
fix timer manager close error.
Browse files Browse the repository at this point in the history
  • Loading branch information
freeeyes committed Feb 9, 2021
1 parent 400b7ff commit 28069f5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions purenessscopeserver/Common/TimerManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,11 @@ class PSS_Timer_Manager

void Close()
{
m_timerMgr->Close();

m_ttTimerThread.join();
if (nullptr != m_timerMgr)
{
m_timerMgr->Close();
m_ttTimerThread.join();
}
};

brynet::TimerMgr::Ptr GetTimerPtr() const
Expand Down

0 comments on commit 28069f5

Please sign in to comment.