X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXChannel.pm;h=b0208f103e0e6093df5b654c133420e110780419;hb=006e37a3ce71aa3c55833fade25f9c6c11734bb6;hp=adf7c358ddfec793cf90cedf136da8e799355e0e;hpb=64076dcee56232463135a04c9cee3f8c33ce1ff6;p=spider.git diff --git a/perl/DXChannel.pm b/perl/DXChannel.pm index adf7c358..b0208f10 100644 --- a/perl/DXChannel.pm +++ b/perl/DXChannel.pm @@ -396,15 +396,16 @@ sub send # this is always later and always data return unless $conn; my $call = $self->{call}; - for (@_) { -# chomp; - my @lines = split /\n/; - for (@lines) { - $conn->send_later("D$call|$_"); - dbg("-> D $call $_") if isdbg('chan'); + foreach my $l (@_) { + for (ref $l ? @$l : $l) { + my @lines = split /\n/; + for (@lines) { + $conn->send_later("D$call|$_"); + dbg("-> D $call $_") if isdbg('chan'); + } } } - $self->{t} = time; + $self->{t} = $main::systime; } # send a file (always later)