Skip to content

Commit

Permalink
Hide debugging junk until I actually need it
Browse files Browse the repository at this point in the history
  • Loading branch information
sanko committed Dec 28, 2011
1 parent 407b331 commit 7073c71
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/AnyEvent/BitTorrent.pm
Expand Up @@ -928,8 +928,9 @@ sub _on_read {
push @{$s->peers->{$h}{local_allowed}}, $packet->{payload}; push @{$s->peers->{$h}{local_allowed}}, $packet->{payload};
} }
else { else {
use Data::Dump qw[pp];
die 'Unhandled packet: ' . pp $packet; # use Data::Dump qw[pp];
# die 'Unhandled packet: ' . pp $packet;
} }
last last
if 5 > length($h->rbuf // ''); # Min size for protocol if 5 > length($h->rbuf // ''); # Min size for protocol
Expand Down

0 comments on commit 7073c71

Please sign in to comment.