aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-21 19:57:34 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-21 19:57:34 +0100
commit1980d8ebfa11d9f39771a8fc825fe71974db1cfd (patch)
tree69504c72cafc908c795f47f65a19ddba6c9cd1e0 /contrib/epee/include
parentMerge pull request #437 (diff)
downloadmonero-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.
Diffstat (limited to 'contrib/epee/include')
-rw-r--r--contrib/epee/include/console_handler.h2
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;
}