Skip to content

Commit d5aca72

Browse files
committed
proper cleanup for destructed connections
1 parent 1754c73 commit d5aca72

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
@@ -378,7 +378,7 @@ public function getDriverConfiguration(): DriverConfiguration
378378

379379
public function __destruct()
380380
{
381-
if ($this->isOpen()) {
381+
if ($this->serverState !== 'FAILED' && $this->isOpen()) {
382382
$this->close();
383383
}
384384
}

0 commit comments

Comments
 (0)