diff options
author | Thomas Winget <tewinget@gmail.com> | 2015-03-27 08:01:30 -0400 |
---|---|---|
committer | Thomas Winget <tewinget@gmail.com> | 2015-03-27 08:01:30 -0400 |
commit | a0590d29cd9949c65a4cd67630a84410a30d33fe (patch) | |
tree | 4e87da719ff11ccfa61798f3bd07d42574cc9c22 /contrib/epee/include/console_handler.h | |
parent | Merge pull request #247 (diff) | |
download | monero-a0590d29cd9949c65a4cd67630a84410a30d33fe.tar.xz |
Restore daemon interactive mode
Daemon interactive mode is now working again.
RPC mapped calls in daemon and wallet have both had connection_context
removed as an argument as that argument was not being used anywhere.
Diffstat (limited to 'contrib/epee/include/console_handler.h')
-rw-r--r-- | contrib/epee/include/console_handler.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/contrib/epee/include/console_handler.h b/contrib/epee/include/console_handler.h index 147fd9ce0..fc8cc3841 100644 --- a/contrib/epee/include/console_handler.h +++ b/contrib/epee/include/console_handler.h @@ -269,17 +269,19 @@ namespace epee string_tools::trim(command); LOG_PRINT_L2("Read command: " << command); - if(0 == command.compare("exit") || 0 == command.compare("q")) - { - continue_handle = false; - }else if (command.empty()) + if (command.empty()) { continue; } else if(cmd_handler(command)) { continue; - } else + } + else if(0 == command.compare("exit") || 0 == command.compare("q")) + { + continue_handle = false; + } + else { std::cout << "unknown command: " << command << std::endl; std::cout << usage; |