Skip to content

Commit

Permalink
only close socket if still resource
Browse files Browse the repository at this point in the history
  • Loading branch information
bkw committed May 9, 2011
1 parent f2900e2 commit 121ff63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amqp.inc
Expand Up @@ -415,7 +415,7 @@ class AMQPConnection extends AbstractChannel
if($this->input) if($this->input)
$this->close(); $this->close();


if($this->sock) if(is_resource($this->sock))
{ {
if($this->debug) if($this->debug)
{ {
Expand Down Expand Up @@ -457,7 +457,7 @@ class AMQPConnection extends AbstractChannel
$this->input = NULL; $this->input = NULL;
} }


if($this->sock) if(is_resource($this->sock))
{ {
if($this->debug) if($this->debug)
{ {
Expand Down

0 comments on commit 121ff63

Please sign in to comment.