forked from mindspore-Ecosystem/mindspore
stop sendheartbeat when finish normally
This commit is contained in:
parent
321813038c
commit
912d16b9a5
|
@ -258,6 +258,7 @@ void Debugger::Reset() {
|
||||||
std::lock_guard<std::mutex> a_lock(access_lock_);
|
std::lock_guard<std::mutex> a_lock(access_lock_);
|
||||||
// reset components
|
// reset components
|
||||||
if (heartbeat_thread_ && heartbeat_thread_->joinable()) {
|
if (heartbeat_thread_ && heartbeat_thread_->joinable()) {
|
||||||
|
SetEnableHeartbeat(false);
|
||||||
heartbeat_thread_->join();
|
heartbeat_thread_->join();
|
||||||
MS_LOG(INFO) << "Join Heartbeat thread.";
|
MS_LOG(INFO) << "Join Heartbeat thread.";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue