Skip to content

Commit

Permalink
BUG Fix failover continuing to throw exception even after eventual su…
Browse files Browse the repository at this point in the history
…ccess
  • Loading branch information
Damian Mooyman committed Oct 3, 2017
1 parent 902728d commit b417399
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 b417399

Please sign in to comment.