X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXChannel.pm;h=3b3ac62f13b84e193c0ff661981d3ba3a7981616;hb=25140d3e8633cbf9e25b6528248405ec8ed125e3;hp=aae692efb52e4f31230c0b04b118765ee3236775;hpb=1256794cae0d863c829011df3f87dc1fb70f977d;p=spider.git diff --git a/perl/DXChannel.pm b/perl/DXChannel.pm index aae692ef..3b3ac62f 100644 --- a/perl/DXChannel.pm +++ b/perl/DXChannel.pm @@ -426,6 +426,7 @@ sub disconnect my $self = shift; my $user = $self->{user}; + main::clean_inqueue($self); # clear out any remaining incoming frames $user->close() if defined $user; $self->{conn}->disconnect; $self->del(); @@ -626,7 +627,6 @@ sub broadcast_list #no strict; sub AUTOLOAD { - my $self = shift; no strict; my $name = $AUTOLOAD; return if $name =~ /::DESTROY$/; @@ -637,9 +637,7 @@ sub AUTOLOAD # this clever line of code creates a subroutine which takes over from autoload # from OO Perl - Conway *$AUTOLOAD = sub {@_ > 1 ? $_[0]->{$name} = $_[1] : $_[0]->{$name}}; - &$AUTOLOAD($self, @_); -# *{$AUTOLOAD} = sub {@_ > 1 ? $_[0]->{$name} = $_[1] : $_[0]->{$name}} ; -# @_ ? $self->{$name} = shift : $self->{$name} ; + goto &$AUTOLOAD; }