diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-10-21 19:57:34 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-10-21 19:57:34 +0100 |
commit | 1980d8ebfa11d9f39771a8fc825fe71974db1cfd (patch) | |
tree | 69504c72cafc908c795f47f65a19ddba6c9cd1e0 | |
parent | Merge pull request #437 (diff) | |
download | monero-1980d8ebfa11d9f39771a8fc825fe71974db1cfd.tar.xz |
console_handler: silence spurious message when exiting daemon
The daemon registers a custom exit command, which cause the
loop to stop. Catch this case before printing "Failed to read line"
as this is an expected case.
-rw-r--r-- | contrib/epee/include/console_handler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/epee/include/console_handler.h b/contrib/epee/include/console_handler.h index 5dd3eaba9..0eff095e1 100644 --- a/contrib/epee/include/console_handler.h +++ b/contrib/epee/include/console_handler.h @@ -275,7 +275,7 @@ namespace epee std::string command; bool get_line_ret = m_stdin_reader.get_line(command); - if (m_stdin_reader.eos()) + if (!m_running || m_stdin_reader.eos()) { break; } |