summaryrefslogtreecommitdiff
path: root/Echolot/Storage
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2003-02-22 21:01:06 +0000
committerPeter Palfrader <peter@palfrader.org>2003-02-22 21:01:06 +0000
commit31703c15769f41085a53310efb776d6a5165d3c7 (patch)
tree1bca646d6ee53dd0583a34747e203d36541ceb01 /Echolot/Storage
parentdca6c6b907f51749cc526988853fabcb9af4d7d9 (diff)
Handle situations better in which a ping receives when the key already is expired
Diffstat (limited to 'Echolot/Storage')
-rw-r--r--Echolot/Storage/File.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/Echolot/Storage/File.pm b/Echolot/Storage/File.pm
index dff840e..e2ac834 100644
--- a/Echolot/Storage/File.pm
+++ b/Echolot/Storage/File.pm
@@ -1,7 +1,7 @@
package Echolot::Storage::File;
# (c) 2002 Peter Palfrader <peter@palfrader.org>
-# $Id: File.pm,v 1.56 2003/02/21 05:52:05 weasel Exp $
+# $Id: File.pm,v 1.57 2003/02/22 21:01:06 weasel Exp $
#
=pod
@@ -490,8 +490,8 @@ sub get_pings($$$$$) {
my @pings;
my $fh = $self->get_ping_fh($remailer_addr, $type, $key, $direction) or
- Echolot::Log::warn ("$remailer_addr; type=$type; key=$key has no assigned filehandle for $direction pings."),
- return undef;
+ Echolot::Log::info ("$remailer_addr; type=$type; key=$key has no assigned filehandle for $direction pings (key has expired)."),
+ return ();
seek($fh, 0, SEEK_SET) or
Echolot::Log::warn("Cannot seek to start of $remailer_addr type $type key $key direction $direction pings: $!."),