We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7707ddf commit 0617a7bCopy full SHA for 0617a7b
1 file changed
system/Session/Handlers/RedisHandler.php
@@ -230,10 +230,8 @@ public function close(): bool
230
$pingReply = $this->redis->ping();
231
232
if (($pingReply === true) || ($pingReply === '+PONG')) {
233
- if (isset($this->lockKey)) {
234
- if (! $this->releaseLock()) {
235
- return false;
236
- }
+ if (isset($this->lockKey) && ! $this->releaseLock()) {
+ return false;
237
}
238
239
if (! $this->redis->close()) {
0 commit comments