File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ final class BoltConnection implements ConnectionInterface
49
49
/** @psalm-readonly */
50
50
private DriverConfiguration $ driverConfiguration ;
51
51
private int $ ownerCount = 0 ;
52
- private bool $ hasBeenReset = false ;
53
52
private string $ expectedState = 'READY ' ;
54
53
55
54
/**
@@ -142,7 +141,7 @@ public function getDatabaseInfo(): DatabaseInfo
142
141
*/
143
142
public function isOpen (): bool
144
143
{
145
- return $ this ->boltProtocol !== null && ! $ this -> hasBeenReset ;
144
+ return $ this ->boltProtocol !== null ;
146
145
}
147
146
148
147
public function open (): void
@@ -159,7 +158,6 @@ public function close(): void
159
158
{
160
159
if ($ this ->ownerCount === 0 ) {
161
160
$ this ->boltProtocol = null ;
162
- $ this ->hasBeenReset = false ;
163
161
}
164
162
}
165
163
@@ -168,9 +166,6 @@ public function reset(): void
168
166
if ($ this ->boltProtocol ) {
169
167
$ this ->boltProtocol ->reset ();
170
168
$ this ->boltProtocol = $ this ->factory ->build ()[0 ];
171
- if ($ this ->ownerCount > 0 ) {
172
- $ this ->hasBeenReset = true ;
173
- }
174
169
}
175
170
}
176
171
You can’t perform that action at this time.
0 commit comments