From ec41a06300fa820731ecb36ff74203c0745f628e Mon Sep 17 00:00:00 2001 From: Valera Cogut Date: Mon, 30 Jul 2018 17:52:56 +0300 Subject: [PATCH] reverting throw exception instead of raising SIGINT in order not to terminate cli_test early --- src/rpc/cli.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rpc/cli.cpp b/src/rpc/cli.cpp index add2f6a..0021ada 100644 --- a/src/rpc/cli.cpp +++ b/src/rpc/cli.cpp @@ -107,6 +107,11 @@ void cli::run() catch ( const fc::exception& e ) { std::cout << e.to_detail_string() << "\n"; + + if (e.code() == fc::canceled_exception_code) + { + break; + } } } }