Sync changes.

This commit is contained in:
XMRig 2019-03-31 23:22:36 +07:00
parent ca249f1f1c
commit e759ccf385
7 changed files with 11 additions and 9 deletions

View file

@ -31,7 +31,7 @@
#include "App.h"
#include "base/io/log/Log.h"
#include "core/Config.h"
#include "core/config/Config.h"
#include "core/Controller.h"

View file

@ -26,6 +26,11 @@
#include <uv.h>
#ifndef _WIN32
# include <unistd.h>
#endif
#include "3rdparty/http-parser/http_parser.h"
#include "api/Api.h"
#include "api/interfaces/IApiListener.h"

View file

@ -26,7 +26,6 @@
#define XMRIG_APIROUTER_H
#include "net/NetworkState.h"
#include "api/interfaces/IApiListener.h"
#include "rapidjson/fwd.h"
@ -43,7 +42,7 @@ class Controller;
class ApiRouter : public xmrig::IApiListener
{
public:
ApiRouter(xmrig::Controller *controller);
ApiRouter(Controller *controller);
~ApiRouter() override;
protected:

View file

@ -24,8 +24,9 @@
*/
#include <uv.h>
#include <sstream>
#include <string.h>
#include <uv.h>
#include "3rdparty/http-parser/http_parser.h"

View file

@ -195,6 +195,8 @@ void xmrig::Controller::start()
# ifdef XMRIG_FEATURE_API
api()->start();
# endif
save();
}

View file

@ -29,9 +29,6 @@
#include "base/kernel/interfaces/IConfigListener.h"
class StatsData;
namespace xmrig {

View file

@ -207,8 +207,6 @@ void Workers::start(xmrig::Controller *controller)
m_workers.push_back(handle);
handle->start(Workers::onReady);
}
controller->save();
}