mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-22 15:32:24 +00:00
console_handler: do not let exception past the dor
Coverity 208373
This commit is contained in:
parent
6b2b1d6368
commit
760ecf2ac8
1 changed files with 7 additions and 3 deletions
|
@ -606,12 +606,16 @@ eof:
|
||||||
async_console_handler m_console_handler;
|
async_console_handler m_console_handler;
|
||||||
public:
|
public:
|
||||||
~console_handlers_binder() {
|
~console_handlers_binder() {
|
||||||
|
try
|
||||||
|
{
|
||||||
stop_handling();
|
stop_handling();
|
||||||
if (m_console_thread.get() != nullptr)
|
if (m_console_thread.get() != nullptr)
|
||||||
{
|
{
|
||||||
m_console_thread->join();
|
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)
|
bool start_handling(std::function<std::string(void)> prompt, const std::string& usage_string = "", std::function<void(void)> exit_handler = NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue