Replay: fix possible segfault on exit (#26768)

old-commit-hash: 881c15c2a62135f62cb58c7f317f36365b6e643c
This commit is contained in:
Dean Lee
2022-12-13 02:25:49 +08:00
committed by GitHub
parent b4a98b8740
commit 1072246cf0
+1 -1
View File
@@ -51,9 +51,9 @@ void Replay::stop() {
stream_thread_->wait();
stream_thread_ = nullptr;
}
segments_.clear();
camera_server_.reset(nullptr);
timeline_future.waitForFinished();
segments_.clear();
rInfo("shutdown: done");
}