@ -19,7 +19,7 @@ if (false !== sem_acquire($semaphore, 1)) {
$blockLast = $db->getLastBlock();
$blockTotal = $api->getblockcount();
if (!$blockTotal) {
if (false === $blockTotal) {
echo "API connection error.\n";
exit;
}