Permalink
Browse files

only close socket if still resource

  • Loading branch information...
1 parent f2900e2 commit 121ff63782adc26b79ae1185fcc53cbf8e3d5534 @bkw committed May 9, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 amqp.inc
View
@@ -415,7 +415,7 @@ class AMQPConnection extends AbstractChannel
if($this->input)
$this->close();
- if($this->sock)
+ if(is_resource($this->sock))
{
if($this->debug)
{
@@ -457,7 +457,7 @@ class AMQPConnection extends AbstractChannel
$this->input = NULL;
}
- if($this->sock)
+ if(is_resource($this->sock))
{
if($this->debug)
{

0 comments on commit 121ff63

Please sign in to comment.