fix connection check

This commit is contained in:
KVAZAR 2022-04-24 19:43:25 +03:00 committed by GitHub
parent 7ece21e5e8
commit 3f644ee118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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