diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-09-04 09:18:38 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-09-04 09:18:38 -0500 |
| commit | 23547e6ed6c9f0dc694d55316540000b030bbb06 (patch) | |
| tree | 51305d9a8d88427be4171908a4882a8dc03e7186 /src/daemon/main.cpp | |
| parent | 98af2e954b78dc7607d0236a9db84b2143a33a90 (diff) | |
| parent | 1a367d6a22efc2e596c29d8c3eb95102775f8b24 (diff) | |
| download | monzero-core-23547e6ed6c9f0dc694d55316540000b030bbb06.tar.gz monzero-core-23547e6ed6c9f0dc694d55316540000b030bbb06.tar.xz monzero-core-23547e6ed6c9f0dc694d55316540000b030bbb06.zip | |
Merge pull request #5536
1a367d6 simplewallet: lock console on inactivity (moneromooo-monero)
Diffstat (limited to 'src/daemon/main.cpp')
| -rw-r--r-- | src/daemon/main.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/daemon/main.cpp b/src/daemon/main.cpp index 461888062..cb288071e 100644 --- a/src/daemon/main.cpp +++ b/src/daemon/main.cpp @@ -312,9 +312,7 @@ int main(int argc, char const * argv[]) { login = tools::login::parse( has_rpc_arg ? command_line::get_arg(vm, arg.rpc_login) : std::string(env_rpc_login), false, [](bool verify) { -#ifdef HAVE_READLINE - rdln::suspend_readline pause_readline; -#endif + PAUSE_READLINE(); return tools::password_container::prompt(verify, "Daemon client password"); } ); @@ -336,9 +334,7 @@ int main(int argc, char const * argv[]) } else { -#ifdef HAVE_READLINE - rdln::suspend_readline pause_readline; -#endif + PAUSE_READLINE(); std::cerr << "Unknown command: " << command.front() << std::endl; return 1; } |
