skip z sources if none are connected
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 20 Dec 2007 14:50:29 +0000 (14:50 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 20 Dec 2007 14:50:29 +0000 (14:50 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@8248 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Search/Z3950.pm

index 5813c40..967b527 100755 (executable)
@@ -184,6 +184,7 @@ sub do_class_search {
 
        $logger->debug("z3950: Connections created");
 
+    return undef unless (@connections);
        while ((my $index = OpenILS::Utils::ZClient::event( \@connections )) != 0) {
                my $ev = $connections[$index - 1]->last_event();
                $logger->debug("z3950: Received event $ev");