Merge pull request #159 from sparksp/develop/redis
Refactored redis destruction
This commit is contained in:
commit
570b431c05
|
@ -257,8 +257,11 @@ public static function __callStatic($method, $parameters)
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function __destruct()
|
public function __destruct()
|
||||||
|
{
|
||||||
|
if ($this->connection)
|
||||||
{
|
{
|
||||||
fclose($this->connection);
|
fclose($this->connection);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue