summaryrefslogtreecommitdiffstats
path: root/system/libraries
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:36:03 +0100
commitf06858c3df09fd33c80f9fc415b6c63b3430869c (patch)
tree2af9c959ff5593fc95d917aef0d84bc0b0ff2f65 /system/libraries
parent99c17e516438843a69496046e5bc0ea627c3b0f8 (diff)
Merge pull request #4491 from roastduck/develop
[ci skip] Clean current lock key on close() in redis session driver
Diffstat (limited to 'system/libraries')
-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 ad95309da..7b7951f5d 100644
--- a/system/libraries/Session/drivers/Session_redis_driver.php
+++ b/system/libraries/Session/drivers/Session_redis_driver.php
@@ -254,7 +254,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;