Skip to content

Commit

Permalink
Merge pull request #5 from open-sausages/pulls/1.0/fix-chained
Browse files Browse the repository at this point in the history
BUG Fix failover continuing to throw exception even after eventual success
  • Loading branch information
Damian Mooyman authored Oct 3, 2017
2 parents 902728d + b417399 commit 07d427d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Methods/ChainedMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function exposeDirectory($source, $target)
foreach ($this->failovers as $failover) {
try {
$failover->exposeDirectory($source, $target);
break; // Break on first success
return; // Return on first success
} catch (RuntimeException $lastException) {

}
Expand Down

0 comments on commit 07d427d

Please sign in to comment.