diff options
Diffstat (limited to 'zenstore/gc.cpp')
| -rw-r--r-- | zenstore/gc.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/zenstore/gc.cpp b/zenstore/gc.cpp index 0e93f1c3d..7be93b4af 100644 --- a/zenstore/gc.cpp +++ b/zenstore/gc.cpp @@ -404,7 +404,10 @@ GcScheduler::Shutdown() m_Status = static_cast<uint32_t>(GcSchedulerStatus::kStopped); m_GcSignal.notify_one(); - m_GcThread.join(); + if (m_GcThread.joinable()) + { + m_GcThread.join(); + } } } |