mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 16:27:39 +00:00
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.
This commit is contained in:
parent
14dd279fe1
commit
1980d8ebfa
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ namespace epee
|
||||||
|
|
||||||
std::string command;
|
std::string command;
|
||||||
bool get_line_ret = m_stdin_reader.get_line(command);
|
bool get_line_ret = m_stdin_reader.get_line(command);
|
||||||
if (m_stdin_reader.eos())
|
if (!m_running || m_stdin_reader.eos())
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue