Squash warning in php-amqplib

This commit is contained in:
Albert Santoni 2015-03-24 16:54:09 -04:00
parent d1b28fd564
commit 2f4f4b05b9

View file

@ -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;
}
}