Browse Source

fix connection check

pull/1/head
KVAZAR 3 years ago committed by GitHub
parent
commit
8b17cb4897
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      crawler.php

2
crawler.php

@ -19,7 +19,7 @@ if (false !== sem_acquire($semaphore, 1)) { @@ -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…
Cancel
Save