summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Long <mchobbylong@gmail.com>2019-03-15 17:17:06 +0100
committerMichael Long <mchobbylong@gmail.com>2019-03-15 17:17:06 +0100
commit06739bdc05f2fa5fc92db0675ec48f7374ae50cf (patch)
tree63bfa04f290fd93f4fd51a763b30db99485ccb72
parentd3bdd3c973508ff89e6f6789521f2e2476099cfa (diff)
Remove unnecessary code
-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 08b299f9c..c90e94bd3 100644
--- a/system/libraries/Session/drivers/Session_redis_driver.php
+++ b/system/libraries/Session/drivers/Session_redis_driver.php
@@ -389,7 +389,7 @@ class CI_Session_redis_driver extends CI_Session_driver implements SessionHandle
sleep(1);
continue;
}
- elseif ($ttl === -1 && ! $this->_redis->setex($lock_key, 300, time()))
+ elseif ( ! $this->_redis->setex($lock_key, 300, time()))
{
log_message('error', 'Session: Error while trying to obtain lock for '.$this->_key_prefix.$session_id);
return FALSE;