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~54^2~709 X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=commitdiff_plain;h=a629f77fb496b49ac473a596746873c45b2cf402;hp=80ab20dbfc3c6411d67387d8d6d2bda508b078b0 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; }