From bb40656eb3df115273a4d7ed04e6ae437f07ead1 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sat, 1 Mar 2008 18:31:57 +1300 Subject: [PATCH] use ZOOM::Connection error method compatible with 1.16 Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Context.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Context.pm b/C4/Context.pm index 4a0564cd7f..deb547b3ec 100644 --- a/C4/Context.pm +++ b/C4/Context.pm @@ -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 { -- 2.39.5