use ZOOM::Connection error method compatible with 1.16
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
33bc56febd
commit
bb40656eb3
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue