Skip to content

Commit

Permalink
Fixed bolt protocol disconnect packet not sent upon object destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
Zsolt Puskás authored and transistive committed Feb 6, 2024
1 parent ead3573 commit 7ff5c4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bolt/BoltConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ff5c4a

Please sign in to comment.