diff --git a/src/Ganesha.php b/src/Ganesha.php index beb5161..7ccbb28 100644 --- a/src/Ganesha.php +++ b/src/Ganesha.php @@ -84,7 +84,7 @@ public function failure($service): void public function success($service): void { try { - if ($this->strategy->recordSuccess($service) === self::STATUS_CALMED_DOWN) { + if ($this->isAvailable($service) && $this->strategy->recordSuccess($service) === self::STATUS_CALMED_DOWN) { $this->notify(self::EVENT_CALMED_DOWN, $service, ''); } } catch (StorageException $e) {