summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
author__RD <beantang.tang@gmail.com>2016-02-29 15:56:29 +0100
committer__RD <beantang.tang@gmail.com>2016-02-29 15:56:29 +0100
commit7f0f73ba81ad712f2553e2f7ef5d0a50f16e119e (patch)
treeac6a4e5830826788a405ebd31fd8abbf39cae264 /system
parentb89f5d3ddfc897f0afc4f15a0993f8f1b2b56b88 (diff)
delete lock directly -> call _release_lock()
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Session/drivers/Session_redis_driver.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/libraries/Session/drivers/Session_redis_driver.php b/system/libraries/Session/drivers/Session_redis_driver.php
index 5081bd5d4..3b648d183 100644
--- a/system/libraries/Session/drivers/Session_redis_driver.php
+++ b/system/libraries/Session/drivers/Session_redis_driver.php
@@ -277,8 +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->_lock_key = NULL;
+ $this->_release_lock($this->_lock_key);
if ($this->_redis->close() === $this->_failure)
{
return $this->_failure;