mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-08 21:14:14 +00:00
Only try to shut down work cleanly if we've successfully connected and started mining.
This commit is contained in:
parent
0ed757a020
commit
cbef2a6a65
@ -1983,6 +1983,9 @@ static void __kill_work(void)
|
|||||||
struct thr_info *thr;
|
struct thr_info *thr;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if (!successful_connect)
|
||||||
|
return;
|
||||||
|
|
||||||
applog(LOG_INFO, "Received kill message");
|
applog(LOG_INFO, "Received kill message");
|
||||||
|
|
||||||
applog(LOG_DEBUG, "Killing off watchpool thread");
|
applog(LOG_DEBUG, "Killing off watchpool thread");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user