added support for subroutines in commands
[spider.git] / perl / DXChannel.pm
index 517372fa9446b49aba4799c3528483dddb203381..8384567003685d54e1a5dfe155095e2a91e573db 100644 (file)
@@ -707,17 +707,15 @@ sub broadcast_list
 sub process
 {
        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;