Skip to content

Commit

Permalink
Fixed possible crash
Browse files Browse the repository at this point in the history
  • Loading branch information
markoostveen committed Sep 6, 2023
1 parent c025d05 commit f1e68e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions JobSystem/Src/JobSystem/WorkerThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ namespace JbSystem {
#else
if(!_shutdownRequested.load()){
Active.store(true);
if (_worker.joinable()) {
_worker.join();
}
_worker = std::thread([this](JobSystemWorker* worker) {
const std::unique_lock ul(_isRunningMutex);
_isRunning.store(true);
Expand Down

0 comments on commit f1e68e5

Please sign in to comment.