mirror of
https://github.com/kvazar-network/crawler-api-node.git
synced 2025-01-08 22:27:55 +00:00
fix connection check
This commit is contained in:
parent
7ece21e5e8
commit
3f644ee118
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user