From 7ff5c4a0d0e257bd486e868b17861fd2fa731e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zsolt=20Pusk=C3=A1s?= Date: Tue, 6 Feb 2024 18:08:11 +0100 Subject: [PATCH] Fixed bolt protocol disconnect packet not sent upon object destroy --- src/Bolt/BoltConnection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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