projects
/
irspy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0225397
)
Proper registration of connection errors.
author
Mike Taylor
<mike@indexdata.com>
Mon, 20 Nov 2006 15:05:53 +0000
(15:05 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Mon, 20 Nov 2006 15:05:53 +0000
(15:05 +0000)
lib/ZOOM/IRSpy/Test/Ping.pm
patch
|
blob
|
history
diff --git
a/lib/ZOOM/IRSpy/Test/Ping.pm
b/lib/ZOOM/IRSpy/Test/Ping.pm
index
52c002d
..
ae27126
100644
(file)
--- 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", "<irspy:probe ok='$ok'>" .
isodate(time()) . "</irspy:probe>");
- $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;
}