Skip to content

Commit b5f2e1f

Browse files
authored
Fix #636 (#638)
1 parent 21a1191 commit b5f2e1f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/stella_vslam/system.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,9 @@ void system::shutdown() {
223223

224224
// wait until the threads stop
225225
mapping_thread_->join();
226-
global_optimization_thread_->join();
226+
if (global_optimization_thread_) {
227+
global_optimization_thread_->join();
228+
}
227229

228230
spdlog::info("shutdown SLAM system");
229231
system_is_running_ = false;

0 commit comments

Comments
 (0)