From 1980d8ebfa11d9f39771a8fc825fe71974db1cfd Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 21 Oct 2015 19:57:34 +0100 Subject: [PATCH] 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. --- contrib/epee/include/console_handler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/epee/include/console_handler.h b/contrib/epee/include/console_handler.h index 5dd3eaba..0eff095e 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; }