Fixed graceful shutdown.

This commit is contained in:
XMRig 2017-07-18 05:20:36 +03:00
parent 9732636155
commit a3988374f0
15 changed files with 62 additions and 4 deletions

View file

@ -48,6 +48,7 @@ public:
int64_t submit(const JobResult &result) override;
void connect() override;
void stop() override;
protected:
void onClose(Client *client, int failures) override;
@ -57,7 +58,7 @@ protected:
private:
void idle();
void stop();
void suspend();
static void onTimer(uv_timer_t *handle);