mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 22:14:36 +00:00
Don't put an extra work item in the queue as each new device thread will do so itself.
This commit is contained in:
parent
82698fbffd
commit
967acd39bd
7
main.c
7
main.c
@ -3353,13 +3353,6 @@ static void *watchdog_thread(void *userdata)
|
|||||||
thr->rolling = thr->cgpu->rolling = 0;
|
thr->rolling = thr->cgpu->rolling = 0;
|
||||||
gpus[i].alive = false;
|
gpus[i].alive = false;
|
||||||
applog(LOG_ERR, "Attempting to restart thread %d, idle for more than 60 seconds", i);
|
applog(LOG_ERR, "Attempting to restart thread %d, idle for more than 60 seconds", i);
|
||||||
/* Create one mandatory work item */
|
|
||||||
inc_staged(current_pool(), 1, true);
|
|
||||||
if (unlikely(!queue_request())) {
|
|
||||||
applog(LOG_ERR, "Failed to queue_request in watchdog_thread");
|
|
||||||
kill_work();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
reinit_device(thr->cgpu);
|
reinit_device(thr->cgpu);
|
||||||
/* Only initialise the device once since there
|
/* Only initialise the device once since there
|
||||||
* will be multiple threads on the same device
|
* will be multiple threads on the same device
|
||||||
|
Loading…
x
Reference in New Issue
Block a user