Merge pull request #159 from sparksp/develop/redis

Refactored redis destruction
This commit is contained in:
Taylor Otwell
2011-11-18 06:15:08 -08:00

View File

@@ -257,8 +257,11 @@ class Redis {
* @return void * @return void
*/ */
public function __destruct() public function __destruct()
{
if ($this->connection)
{ {
fclose($this->connection); fclose($this->connection);
} }
}
} }