Browse files

Merge pull request #13 from yuvadm/master

Fixed PHP error on closing socket which is already closed
  • Loading branch information...
2 parents 284a578 + 2726d4a commit 9cf0d2024c96c7455a5968f70ff5de0f5793f08d @videlalvaro videlalvaro committed Jun 16, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 amqp.inc
View
4 amqp.inc
@@ -415,7 +415,7 @@ class AMQPConnection extends AbstractChannel
if($this->input)
$this->close();
- if($this->sock)
+ if(gettype($this->sock) == 'resource')
{
if($this->debug)
{
@@ -457,7 +457,7 @@ class AMQPConnection extends AbstractChannel
$this->input = NULL;
}
- if($this->sock)
+ if(gettype($this->sock) == 'resource')
{
if($this->debug)
{

0 comments on commit 9cf0d20

Please sign in to comment.