diff options
author | monero-project <sempre.amaro@gmail.com> | 2014-05-26 10:07:04 -0400 |
---|---|---|
committer | monero-project <sempre.amaro@gmail.com> | 2014-05-26 10:07:04 -0400 |
commit | 377567534c131356053853ea334d597695d8de55 (patch) | |
tree | c5012f16079e4129c871cb33a9d11afd9a2d370b | |
parent | Merge pull request #12 from quazarcoin/MRO_master (diff) | |
parent | simplewallet exits when COMMAND is given as a command-line argument (diff) | |
download | monero-377567534c131356053853ea334d597695d8de55.tar.xz |
Merge pull request #16 from paybee/master
simplewallet exits when COMMAND is given as a command-line argument
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 0f84b81de..cc10de5cd 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -1054,14 +1054,20 @@ int main(int argc, char* argv[]) std::vector<std::string> command = command_line::get_arg(vm, arg_command); if (!command.empty()) + { w.process_command(command); - - tools::signal_handler::install([&w] { w.stop(); - }); - w.run(); + w.deinit(); + } + else + { + tools::signal_handler::install([&w] { + w.stop(); + }); + w.run(); - w.deinit(); + w.deinit(); + } } return 1; //CATCH_ENTRY_L0("main", 1); |