Squash warning in php-amqplib
This commit is contained in:
parent
d1b28fd564
commit
2f4f4b05b9
1 changed files with 4 additions and 2 deletions
|
@ -463,8 +463,10 @@ class AMQPConnection extends AbstractChannel
|
|||
{
|
||||
debug_msg("closing socket");
|
||||
}
|
||||
|
||||
@fclose($this->sock);
|
||||
|
||||
if (is_resource($this->sock)) {
|
||||
@fclose($this->sock);
|
||||
}
|
||||
$this->sock = NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue