diff --git a/src/Bolt/BoltConnection.php b/src/Bolt/BoltConnection.php index 6f503ef5..f238141b 100644 --- a/src/Bolt/BoltConnection.php +++ b/src/Bolt/BoltConnection.php @@ -135,7 +135,7 @@ public function getAuthentication(): AuthenticateInterface */ public function isOpen(): bool { - return in_array($this->protocol()->serverState->get(), ['DISCONNECTED', 'DEFUNCT'], true); + return !in_array($this->protocol()->serverState->get(), ['DISCONNECTED', 'DEFUNCT'], true); } public function setTimeout(float $timeout): void