Skip to content

Commit 70b336f

Browse files
committed
removed has been reset flag
1 parent 089d933 commit 70b336f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Common/BoltConnection.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ final class BoltConnection implements ConnectionInterface
4949
/** @psalm-readonly */
5050
private DriverConfiguration $driverConfiguration;
5151
private int $ownerCount = 0;
52-
private bool $hasBeenReset = false;
5352
private string $expectedState = 'READY';
5453

5554
/**
@@ -142,7 +141,7 @@ public function getDatabaseInfo(): DatabaseInfo
142141
*/
143142
public function isOpen(): bool
144143
{
145-
return $this->boltProtocol !== null && !$this->hasBeenReset;
144+
return $this->boltProtocol !== null;
146145
}
147146

148147
public function open(): void
@@ -159,7 +158,6 @@ public function close(): void
159158
{
160159
if ($this->ownerCount === 0) {
161160
$this->boltProtocol = null;
162-
$this->hasBeenReset = false;
163161
}
164162
}
165163

@@ -168,9 +166,6 @@ public function reset(): void
168166
if ($this->boltProtocol) {
169167
$this->boltProtocol->reset();
170168
$this->boltProtocol = $this->factory->build()[0];
171-
if ($this->ownerCount > 0) {
172-
$this->hasBeenReset = true;
173-
}
174169
}
175170
}
176171

0 commit comments

Comments
 (0)