mirror of
https://github.com/predis/predis.git
synced 2026-08-27 18:51:07 +00:00
Merge branch 'main' of https://github.com/predis/predis
This commit is contained in:
@@ -244,7 +244,10 @@ class StreamConnection extends AbstractConnection
|
||||
public function disconnect()
|
||||
{
|
||||
if ($this->isConnected()) {
|
||||
fclose($this->getResource());
|
||||
$resource = $this->getResource();
|
||||
if (is_resource($resource)) {
|
||||
fclose($resource);
|
||||
}
|
||||
parent::disconnect();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user