Skip to content

Commit

Permalink
slightly faster reset
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 17, 2015
1 parent f72aca6 commit 767fb65
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Mojo/IOLoop.pm
Expand Up @@ -101,9 +101,7 @@ sub remove {

sub reset {
my $self = _instance(shift);
$self->_remove($_)
for keys %{$self->{acceptors}}, keys %{$self->{connections}};
$self->_remove($self->{stop}) if $self->{stop};
delete @$self{qw(accepting acceptors connections stop)};
$self->reactor->reset;
$self->stop;
}
Expand Down

0 comments on commit 767fb65

Please sign in to comment.