X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FThingy%2FPing.pm;h=de295c556c939909dbe062793842867e9942ba2a;hb=809ac2e606559d68ff6e0580c0681fc71c6bc4b9;hp=ec9ce73d1b5b6b208abaea184b2fe3925aecd04c;hpb=a55714f18999ec1ac500dfcbf7f3f12cc4a96f99;p=spider.git diff --git a/perl/Thingy/Ping.pm b/perl/Thingy/Ping.pm index ec9ce73d..de295c55 100644 --- a/perl/Thingy/Ping.pm +++ b/perl/Thingy/Ping.pm @@ -117,7 +117,8 @@ sub handle } else { # it's a reply, look in the ping list for this one - my $ref = $ping{$thing->{id}} if exists $thing->{id}; + my $ref; + $ref = $ping{$thing->{id}} if exists $thing->{id}; $ref = find(($thing->{user}||$thing->{origin}), ($thing->{touser}||$thing->{group})) unless $ref; if ($ref) { my $t = tv_interval($ref->{t}, [ gettimeofday ]);