提交 94bc0449 编写于 作者: S siyangy 提交者: Jiangtao Hu

Cyber: Avoid shutdown when cyber is uninitialized

上级 68fb3ddd
......@@ -155,7 +155,8 @@ bool Init(const char* binary_name) {
void Shutdown() {
std::lock_guard<std::recursive_mutex> lg(g_mutex);
if (GetState() == STATE_SHUTDOWN) {
// TODO(hewei): Add more safeguard on the components to shutdown.
if (GetState() == STATE_SHUTDOWN || GetState() == STATE_UNINITIALIZED) {
return;
}
scheduler::Scheduler::Instance()->ShutDown();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册