From: Mike Taylor Date: Fri, 9 Feb 2007 10:44:25 +0000 (+0000) Subject: Tweak which events errors are ignored for. X-Git-Tag: CPAN-v1.02~626 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=d107d499ecca178a421eee8c31dbcf7d2cfeb67b;p=irspy-moved-to-github.git Tweak which events errors are ignored for. --- diff --git a/lib/ZOOM/IRSpy.pm b/lib/ZOOM/IRSpy.pm index fa0885c..6788402 100644 --- a/lib/ZOOM/IRSpy.pm +++ b/lib/ZOOM/IRSpy.pm @@ -1,4 +1,4 @@ -# $Id: IRSpy.pm,v 1.58 2007-02-05 13:28:51 mike Exp $ +# $Id: IRSpy.pm,v 1.59 2007-02-09 10:44:25 mike Exp $ package ZOOM::IRSpy; @@ -419,7 +419,6 @@ sub check { eval { $conn->_check() }; if ($@ && ($ev == ZOOM::Event::RECV_DATA || - $ev == ZOOM::Event::RECV_APDU || $ev == ZOOM::Event::ZEND)) { # An error in, say, a search response, becomes visible to # ZOOM before the Receive Data event is sent and persists @@ -427,7 +426,7 @@ sub check { # each report the same error. So we just ignore errors on # "unimportant" events. ### But this doesn't work for, # say, a Connection Refused, as the only event that shows - # us this error is the End. + # us this error is the ZEND. $conn->log("irspy_event", "ignoring error ", "on event $ev ($evstr): $@"); next;