mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Artificially set the pool lagging flag on work restart to avoid messages about slow pools after every longpoll.
This commit is contained in:
parent
44e81218fd
commit
a6b97327e1
@ -2753,8 +2753,13 @@ int restart_wait(unsigned int mstime)
|
||||
|
||||
static void restart_threads(void)
|
||||
{
|
||||
struct pool *cp = current_pool();
|
||||
int i;
|
||||
|
||||
/* Artificially set the lagging flag to avoid pool not providing work
|
||||
* fast enough messages after every long poll */
|
||||
pool_tset(cp, &cp->lagging);
|
||||
|
||||
/* Discard staged work that is now stale */
|
||||
discard_stale();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user