Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed closed socket issue

  • Loading branch information...
commit 2726d4a2fc7104a75b665a7e00a977ab9b29a01b 1 parent 284a578
Yuval Adam yuvadm authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 amqp.inc
4 amqp.inc
@@ -415,7 +415,7 @@ class AMQPConnection extends AbstractChannel
415 415 if($this->input)
416 416 $this->close();
417 417
418   - if($this->sock)
  418 + if(gettype($this->sock) == 'resource')
419 419 {
420 420 if($this->debug)
421 421 {
@@ -457,7 +457,7 @@ class AMQPConnection extends AbstractChannel
457 457 $this->input = NULL;
458 458 }
459 459
460   - if($this->sock)
  460 + if(gettype($this->sock) == 'resource')
461 461 {
462 462 if($this->debug)
463 463 {

0 comments on commit 2726d4a

Please sign in to comment.
Something went wrong with that request. Please try again.