From 912d16b9a5ed48416a1e96ca26d49b80eecb32e0 Mon Sep 17 00:00:00 2001 From: yelihua Date: Thu, 2 Sep 2021 20:44:56 +0800 Subject: [PATCH] stop sendheartbeat when finish normally --- mindspore/ccsrc/debug/debugger/debugger.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/mindspore/ccsrc/debug/debugger/debugger.cc b/mindspore/ccsrc/debug/debugger/debugger.cc index de5a6193a3d..78f7e3b3bd8 100644 --- a/mindspore/ccsrc/debug/debugger/debugger.cc +++ b/mindspore/ccsrc/debug/debugger/debugger.cc @@ -258,6 +258,7 @@ void Debugger::Reset() { std::lock_guard a_lock(access_lock_); // reset components if (heartbeat_thread_ && heartbeat_thread_->joinable()) { + SetEnableHeartbeat(false); heartbeat_thread_->join(); MS_LOG(INFO) << "Join Heartbeat thread."; }