summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-02-29 16:35:12 +0100
committerAndrey Andreev <narf@devilix.net>2016-02-29 16:35:12 +0100
commitfbc487d7d77187832014f8d5104c75072bee4dd2 (patch)
tree944fa5e4fe91a0be30e0fd04b6dda01ba6cbfe26 /system
parent459b12582e45eeb045cd2f4143064c30859bf936 (diff)
parent9a15344bc610b2c6a3a1a0a0b73db2fe0eba987a (diff)
Merge pull request #4491 from roastduck/develop
[ci skip] Clean current lock key on close() in redis session driver
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Session/drivers/Session_redis_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Session/drivers/Session_redis_driver.php b/system/libraries/Session/drivers/Session_redis_driver.php
index dc4328644..c0c20a7ca 100644
--- a/system/libraries/Session/drivers/Session_redis_driver.php
+++ b/system/libraries/Session/drivers/Session_redis_driver.php
@@ -277,7 +277,7 @@ class CI_Session_redis_driver extends CI_Session_driver implements SessionHandle
try {
if ($this->_redis->ping() === '+PONG')
{
- isset($this->_lock_key) && $this->_redis->delete($this->_lock_key);
+ $this->_release_lock();
if ($this->_redis->close() === $this->_failure)
{
return $this->_failure;