From 2c546db2ce8dbe07338c5666effe5de84fee540b Mon Sep 17 00:00:00 2001 From: Harshvardhan Gupta Date: Fri, 23 Oct 2020 12:45:43 -0400 Subject: [PATCH] fix terminate issue --- mindspore/ccsrc/debug/debugger/debugger.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mindspore/ccsrc/debug/debugger/debugger.cc b/mindspore/ccsrc/debug/debugger/debugger.cc index f867b11ccb..a923a4a79c 100644 --- a/mindspore/ccsrc/debug/debugger/debugger.cc +++ b/mindspore/ccsrc/debug/debugger/debugger.cc @@ -428,10 +428,12 @@ void Debugger::CommandLoop() { MS_LOG(ERROR) << "Failed to connect to MindInsight debugger server. Please check the config " "of debugger host and port."; Exit(); + run = true; + } else { + MS_LOG(ERROR) << "Number of consecutive WaitForCommand fail:" << num_wait_fail << "; Retry after " + << num_wait_fail << "s"; + std::this_thread::sleep_for(std::chrono::milliseconds(1000 * num_wait_fail)); } - MS_LOG(ERROR) << "Number of consecutive WaitForCommand fail:" << num_wait_fail << "; Retry after " - << num_wait_fail << "s"; - std::this_thread::sleep_for(std::chrono::milliseconds(1000 * num_wait_fail)); continue; }