use ZOOM::Connection error method compatible with 1.16
authorGalen Charlton <galen.charlton@liblime.com>
Sat, 1 Mar 2008 05:31:57 +0000 (18:31 +1300)
committerJoshua Ferraro <jmf@liblime.com>
Sat, 1 Mar 2008 15:49:24 +0000 (09:49 -0600)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Context.pm

index 4a0564c..deb547b 100644 (file)
@@ -494,7 +494,7 @@ sub Zconn {
     my $auth=shift;
     my $piggyback=shift;
     my $syntax=shift;
-    if ( defined($context->{"Zconn"}->{$server}) && !$context->{"Zconn"}->{$server}->exception() ) {
+    if ( defined($context->{"Zconn"}->{$server}) && (0 == $context->{"Zconn"}->{$server}->errcode()) ) {
         return $context->{"Zconn"}->{$server};
     # No connection object or it died. Create one.
     }else {