Sync changes.

This commit is contained in:
XMRig 2019-02-18 19:02:40 +07:00
parent b7c17cf1a0
commit 84f85b4200
3 changed files with 14 additions and 22 deletions

View file

@ -96,7 +96,6 @@ int xmrig::App::exec()
if (m_controller->config()->isDryRun()) {
LOG_NOTICE("OK");
release();
return 0;
}
@ -123,7 +122,6 @@ int xmrig::App::exec()
const int r = uv_run(uv_default_loop(), UV_RUN_DEFAULT);
uv_loop_close(uv_default_loop());
release();
return r;
}
@ -194,8 +192,3 @@ void xmrig::App::close()
uv_stop(uv_default_loop());
}
void xmrig::App::release()
{
}

View file

@ -59,7 +59,6 @@ protected:
private:
void background();
void close();
void release();
Console *m_console;
Controller *m_controller;

View file

@ -47,9 +47,9 @@ class xmrig::ControllerPrivate
{
public:
inline ControllerPrivate(Process *process) :
config(nullptr),
network(nullptr),
process(process),
config(nullptr)
process(process)
{}
@ -60,10 +60,10 @@ public:
}
Config *config;
Network *network;
Process *process;
std::vector<IControllerListener *> listeners;
Config *config;
};