diff options
| author | Per Larsson <[email protected]> | 2022-01-28 13:07:36 +0100 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2022-01-28 13:07:36 +0100 |
| commit | bd43839e042425d72b584b33c7dbb86dabc95e12 (patch) | |
| tree | 1e663395ac626f3863ef92e95952b3c4245abf76 /zenstore/gc.cpp | |
| parent | Get access token from auth mgr. (diff) | |
| parent | Compile fix (diff) | |
| download | zen-bd43839e042425d72b584b33c7dbb86dabc95e12.tar.xz zen-bd43839e042425d72b584b33c7dbb86dabc95e12.zip | |
Merged main.
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(); + } } } |