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
commit 570b431c05
1 changed files with 5 additions and 2 deletions

View File

@ -258,7 +258,10 @@ public static function __callStatic($method, $parameters)
*/
public function __destruct()
{
fclose($this->connection);
if ($this->connection)
{
fclose($this->connection);
}
}
}
}