Skip to content

Commit d388388

Browse files
committed
fix: The close function not only delete the lock from redis but also need to clear the variable value.
1 parent 37ebc6f commit d388388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Session/Handlers/RedisHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public function close(): bool
223223

224224
if (($pingReply === true) || ($pingReply === '+PONG')) {
225225
if (isset($this->lockKey)) {
226-
$this->redis->del($this->lockKey);
226+
$this->releaseLock();
227227
}
228228

229229
if (! $this->redis->close()) {

0 commit comments

Comments
 (0)