Skip to content

Commit 7ff5c4a

Browse files
Zsolt Puskástransistive
authored andcommitted
Fixed bolt protocol disconnect packet not sent upon object destroy
1 parent ead3573 commit 7ff5c4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bolt/BoltConnection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function getAuthentication(): AuthenticateInterface
135135
*/
136136
public function isOpen(): bool
137137
{
138-
return in_array($this->protocol()->serverState->get(), ['DISCONNECTED', 'DEFUNCT'], true);
138+
return !in_array($this->protocol()->serverState->get(), ['DISCONNECTED', 'DEFUNCT'], true);
139139
}
140140

141141
public function setTimeout(float $timeout): void

0 commit comments

Comments
 (0)