X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FThingy%2FPing.pm;h=f61aafbe996e375845ef24ff6f2d1c22b1b2c2cf;hb=773b7d7544bc4c597acfa99e85893a4a90add095;hp=ce64181231f146401fae09827efda789ca789c87;hpb=5fc468a5ca08ec51a9b6994605db183b273b9184;p=spider.git diff --git a/perl/Thingy/Ping.pm b/perl/Thingy/Ping.pm index ce641812..f61aafbe 100644 --- a/perl/Thingy/Ping.pm +++ b/perl/Thingy/Ping.pm @@ -98,7 +98,8 @@ sub handle } else { # it's a reply, look in the ping list for this one - my $ref = $ping{$thing->{id}} || $thing->find; + my $ref = $ping{$thing->{id}} if exists $thing->{id}; + $ref ||= $thing->find; if ($ref) { my $t = tv_interval($thing->{t}, [ gettimeofday ]); if (my $dxc = DXChannel::get($thing->{user} || $thing->{origin})) {