fix connection check

This commit is contained in:
KVAZAR 2022-04-24 19:42:57 +03:00 committed by GitHub
parent c29e0d6b58
commit 8b17cb4897
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();
$blockTotal = $kevaCoin->getblockcount();
if (!$blockTotal) {
if (false === $blockTotal) {
echo "API connection error.\n";
exit;
}