X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy.pm;h=1abb78563b41122023fc52ef27675ae2cca4d4cf;hb=543054dc1b2da8b314b44f8914635090e684df61;hp=bbf251d7a5ee8fd3dca695b69782bd5c4f67a469;hpb=cdb62d58a17e0066756fa8d2c8d25b19a1894fdf;p=irspy-moved-to-github.git diff --git a/lib/ZOOM/IRSpy.pm b/lib/ZOOM/IRSpy.pm index bbf251d..1abb785 100644 --- a/lib/ZOOM/IRSpy.pm +++ b/lib/ZOOM/IRSpy.pm @@ -1,4 +1,4 @@ -# $Id: IRSpy.pm,v 1.25 2006-10-11 16:44:04 mike Exp $ +# $Id: IRSpy.pm,v 1.27 2006-10-12 14:34:59 mike Exp $ package ZOOM::IRSpy; @@ -7,6 +7,8 @@ use strict; use warnings; use Data::Dumper; # For debugging only +use ZOOM; +use Net::Z3950::ZOOM 1.13; # For the ZOOM version-check only use ZOOM::IRSpy::Node; use ZOOM::IRSpy::Connection; use ZOOM::IRSpy::Record; @@ -365,7 +367,7 @@ sub check { if ($@) { my $sub = $task->{cb}->{exception}; die $@ if !defined $sub; - $res = &$sub($conn, $task, $@); + $res = &$sub($conn, $task, $task->udata(), $@); } else { my $sub = $task->{cb}->{$ev}; if (!defined $sub) { @@ -373,7 +375,7 @@ sub check { next; } - $res = &$sub($conn, $task, $ev); + $res = &$sub($conn, $task, $task->udata(), $ev); } if ($res == ZOOM::IRSpy::Status::OK) {