From: Mike Taylor Date: Mon, 20 Nov 2006 15:05:53 +0000 (+0000) Subject: Proper registration of connection errors. X-Git-Tag: CPAN-v1.02~764 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=e9e466f947532931be96ad87733bfac0cfae4994;p=irspy-moved-to-github.git Proper registration of connection errors. --- diff --git a/lib/ZOOM/IRSpy/Test/Ping.pm b/lib/ZOOM/IRSpy/Test/Ping.pm index 52c002d..ae27126 100644 --- a/lib/ZOOM/IRSpy/Test/Ping.pm +++ b/lib/ZOOM/IRSpy/Test/Ping.pm @@ -1,4 +1,4 @@ -# $Id: Ping.pm,v 1.14 2006-10-25 10:49:37 mike Exp $ +# $Id: Ping.pm,v 1.15 2006-11-20 15:05:53 mike Exp $ # See the "Main" test package for documentation @@ -32,8 +32,8 @@ sub maybe_connected { my $rec = $conn->record(); $rec->append_entry("irspy:status", "" . isodate(time()) . ""); - $conn->option(pod_omit => 1) if !$ok; - return ZOOM::IRSpy::Status::TASK_DONE; + return $ok ? ZOOM::IRSpy::Status::TEST_GOOD : + ZOOM::IRSpy::Status::TEST_BAD; }