From 4beb698268565780ffaae55f165dd64d5611c643 Mon Sep 17 00:00:00 2001 From: satyakoneru Date: Mon, 19 Aug 2019 16:51:50 +0000 Subject: [PATCH] GRPH-46-AddQuitCommandToCliWallet - Add Quit command to CLI Wallet --- src/rpc/cli.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rpc/cli.cpp b/src/rpc/cli.cpp index d3070fb..4957fc3 100755 --- a/src/rpc/cli.cpp +++ b/src/rpc/cli.cpp @@ -121,6 +121,11 @@ void cli::run() catch ( const fc::exception& e ) { std::cout << e.to_detail_string() << "\n"; + + if (e.code() == fc::canceled_exception_code) + { + break; + } } } }