Commit 570b431c by Taylor Otwell

Merge pull request #159 from sparksp/develop/redis

Refactored redis destruction
parents 5b9f6d1b 8fd522fd
...@@ -258,7 +258,10 @@ class Redis { ...@@ -258,7 +258,10 @@ class Redis {
*/ */
public function __destruct() public function __destruct()
{ {
if ($this->connection)
{
fclose($this->connection); fclose($this->connection);
} }
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment