Permalink
Browse files

fixed closed socket issue

  • Loading branch information...
1 parent 284a578 commit 2726d4a2fc7104a75b665a7e00a977ab9b29a01b Yuval Adam 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 2726d4a

Please sign in to comment.