From d3fa335e2c730254375f71fce6088a755dda0ecd Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Fri, 14 Jun 2013 10:14:13 +0200 Subject: [PATCH] Ensure we are able to fetch the upstream share * If a block was found but the upstream share is not inserted, bail out * Next run should find the upstream share if it was added properly Should address #189 but maybe not a fix yet. --- cronjobs/findblock.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cronjobs/findblock.php b/cronjobs/findblock.php index 0538d94c..dae9b432 100755 --- a/cronjobs/findblock.php +++ b/cronjobs/findblock.php @@ -82,9 +82,9 @@ foreach ($aAllBlocks as $iIndex => $aBlock) { $iCurrentUpstreamId = $share->getUpstreamId(); $iAccountId = $user->getUserId($share->getUpstreamFinder()); } else { - verbose("Unable to fetch blocks upstream share\n"); + verbose("Unable to fetch blocks upstream share. Aborting!\n"); verbose($share->getError() . "\n"); - continue; + exit; } // Fetch share information if (!$iPreviousShareId = $block->getLastShareId()) {