mirror of
https://github.com/kvazar-network/crawler-full-node.git
synced 2025-01-22 04:45:12 +00:00
fix connection check
This commit is contained in:
parent
c29e0d6b58
commit
8b17cb4897
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user