Browse Source

fix connection check

mysql
KVAZAR 2 years ago committed by GitHub
parent
commit
3f644ee118
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)) {
$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…
Cancel
Save