|
|
@ -1130,6 +1130,8 @@ static void add_base(ckpool_t *ckp, sdata_t *sdata, workbase_t *wb, bool *new_bl |
|
|
|
break; |
|
|
|
break; |
|
|
|
if (wb == tmp) |
|
|
|
if (wb == tmp) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
|
|
|
|
if (wb->readcount) |
|
|
|
|
|
|
|
continue; |
|
|
|
/* Age old workbases older than 10 minutes old */ |
|
|
|
/* Age old workbases older than 10 minutes old */ |
|
|
|
if (tmp->gentime.tv_sec < wb->gentime.tv_sec - 600) { |
|
|
|
if (tmp->gentime.tv_sec < wb->gentime.tv_sec - 600) { |
|
|
|
HASH_DEL(sdata->workbases, tmp); |
|
|
|
HASH_DEL(sdata->workbases, tmp); |
|
|
|