|
|
@ -274,14 +274,15 @@ namespace epee
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
std::string command;
|
|
|
|
std::string command;
|
|
|
|
if(!m_stdin_reader.get_line(command))
|
|
|
|
bool get_line_ret = m_stdin_reader.get_line(command);
|
|
|
|
{
|
|
|
|
|
|
|
|
LOG_PRINT("Failed to read line.", LOG_LEVEL_0);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (m_stdin_reader.eos())
|
|
|
|
if (m_stdin_reader.eos())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!get_line_ret)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
LOG_PRINT("Failed to read line.", LOG_LEVEL_0);
|
|
|
|
|
|
|
|
}
|
|
|
|
string_tools::trim(command);
|
|
|
|
string_tools::trim(command);
|
|
|
|
|
|
|
|
|
|
|
|
LOG_PRINT_L2("Read command: " << command);
|
|
|
|
LOG_PRINT_L2("Read command: " << command);
|
|
|
|