From 31703c15769f41085a53310efb776d6a5165d3c7 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 22 Feb 2003 21:01:06 +0000 Subject: Handle situations better in which a ping receives when the key already is expired --- Echolot/Storage/File.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Echolot/Storage/File.pm') 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 -# $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: $!."), -- cgit v1.2.3