[libanyevent-rabbitmq-perl] 76/151: Be more careful in DESTROY block of the channel.

Damyan Ivanov dmn at moszumanska.debian.org
Thu Jan 16 11:03:05 UTC 2014


This is an automated email from the git hooks/post-receive script.

dmn pushed a commit to annotated tag debian/1.12-1
in repository libanyevent-rabbitmq-perl.

commit 612f4e8d1e205502b18543769e44e5cde582bace
Author: Johannes Plunien <johannes.plunien at xing.com>
Date:   Thu Mar 10 10:38:15 2011 +0100

    Be more careful in DESTROY block of the channel.
---
 lib/AnyEvent/RabbitMQ/Channel.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/AnyEvent/RabbitMQ/Channel.pm b/lib/AnyEvent/RabbitMQ/Channel.pm
index 867a14b..fe0b0a7 100644
--- a/lib/AnyEvent/RabbitMQ/Channel.pm
+++ b/lib/AnyEvent/RabbitMQ/Channel.pm
@@ -675,7 +675,7 @@ sub _check_open {
 
 sub DESTROY {
     my $self = shift;
-    $self->close();
+    $self->close() if defined $self;
     return;
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libanyevent-rabbitmq-perl.git



More information about the Pkg-perl-cvs-commits mailing list