X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXChannel.pm;h=8384567003685d54e1a5dfe155095e2a91e573db;hb=85eea0e7a1a773e5da2422bd1b5ff77951f24e77;hp=64a9a1ae5b7c153608c19416f95d64ebb287fa67;hpb=ed2d469812ca5ab82baab7f8b4795660e01ef539;p=spider.git diff --git a/perl/DXChannel.pm b/perl/DXChannel.pm index 64a9a1ae..83845670 100644 --- a/perl/DXChannel.pm +++ b/perl/DXChannel.pm @@ -706,18 +706,16 @@ sub broadcast_list sub process { - foreach my $dxchan (get_all()) { - + foreach my $dxchan (values %channels) { + + next if $dxchan->{disconnecting}; + while (my $data = shift @{$dxchan->{inqueue}}) { my ($sort, $call, $line) = $dxchan->decode_input($data); next unless defined $sort; # do the really sexy console interface bit! (Who is going to do the TK interface then?) dbg("<- $sort $call $line") if $sort ne 'D' && isdbg('chan'); - if ($dxchan->{disconnecting}) { - dbg('In disconnection, ignored'); - next; - } # handle A records my $user = $dxchan->user;