From b41739971f1d3dbed04e741d57027f71566539ac Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Wed, 4 Oct 2017 11:18:01 +1300 Subject: [PATCH] BUG Fix failover continuing to throw exception even after eventual success --- src/Methods/ChainedMethod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Methods/ChainedMethod.php b/src/Methods/ChainedMethod.php index 857e58a..56376fd 100644 --- a/src/Methods/ChainedMethod.php +++ b/src/Methods/ChainedMethod.php @@ -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) { }