Fix uv_tty_reset_mode on Linux.

This commit is contained in:
XMRig 2019-03-19 22:13:43 +07:00
parent 4c95136e6a
commit 8d61a47040
2 changed files with 2 additions and 2 deletions

View file

@ -68,8 +68,6 @@ xmrig::App::App(Process *process) :
xmrig::App::~App()
{
uv_tty_reset_mode();
delete m_signals;
delete m_console;
delete m_controller;

View file

@ -53,6 +53,8 @@ xmrig::Console::~Console()
void xmrig::Console::stop()
{
uv_tty_reset_mode();
Handle::close(m_tty);
m_tty = nullptr;
}