fix the nasty feature in perl 5.6 with my $ref = $foo if $bar for
[spider.git] / perl / DXProt.pm
index 2bfd66865c6eac1e2e6808e2bab7e2c423b4ebc0..ec395d207b174459118d637179ed402cd8c481a8 100644 (file)
@@ -1578,13 +1578,13 @@ sub process
                
                # send a ping out on this channel
                if ($dxchan->{pingint} && $t >= $dxchan->{pingint} + $dxchan->{lastping}) {
-#                      if ($dxchan->{nopings} <= 0) {
-#                              $dxchan->disconnect;
-#                      } else {
+                       if ($dxchan->{nopings} <= 0) {
+                               $dxchan->disconnect;
+                       } else {
                                addping($main::mycall, $dxchan->call);
                                $dxchan->{nopings} -= 1;
                                $dxchan->{lastping} = $t;
-#                      }
+                       }
                }
        }