Merge pull request #601 from TheSerapher/issue-600
Fixing notification reset for active workers
This commit is contained in:
commit
85b2f04434
@ -58,7 +58,7 @@ if (!empty($aNotifications)) {
|
||||
$aData = json_decode($aNotification['data'], true);
|
||||
$aWorker = $worker->getWorker($aData['id']);
|
||||
$log->logInfo(" " . $aWorker['username'] . " ...");
|
||||
if ($aWorker['active'] == 1) {
|
||||
if ($aWorker['hashrate'] > 0) {
|
||||
if ($notification->setInactive($aNotification['id'])) {
|
||||
$log->logInfo(" updated #" . $aNotification['id'] . " for " . $aWorker['username'] . " as inactive\n");
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user