console_handler: do not let exception past the dor

Coverity 208373
pull/241/head
moneromooo-monero 4 years ago
parent 6b2b1d6368
commit 760ecf2ac8
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -606,11 +606,15 @@ eof:
async_console_handler m_console_handler;
public:
~console_handlers_binder() {
stop_handling();
if (m_console_thread.get() != nullptr)
try
{
m_console_thread->join();
stop_handling();
if (m_console_thread.get() != nullptr)
{
m_console_thread->join();
}
}
catch (const std::exception &e) { /* ignore */ }
}
bool start_handling(std::function<std::string(void)> prompt, const std::string& usage_string = "", std::function<void(void)> exit_handler = NULL)

Loading…
Cancel
Save