Merge pull request #4669

d3cda5ad console_handler: add a global log when exiting via EOF (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-10-20 20:39:08 +02:00
commit 2c08fd472d
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

View File

@ -352,8 +352,11 @@ eof:
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_running || m_stdin_reader.eos()) if (!m_running)
break;
if (m_stdin_reader.eos())
{ {
MGINFO("EOF on stdin, exiting");
break; break;
} }
if (!get_line_ret) if (!get_line_ret)