Skip to content

Commit

Permalink
small optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 9, 2013
1 parent fe23a7e commit ff28702
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions lib/Mojo/IOLoop/Stream.pm
Expand Up @@ -98,10 +98,7 @@ sub write {
return $self;
}

sub _again {
my $self = shift;
$self->reactor->again($self->{timer}) if $self->{timer};
}
sub _again { $_[0]->reactor->again($_[0]->{timer}) if $_[0]->{timer} }

sub _error {
my $self = shift;
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Reactor.pm
Expand Up @@ -91,7 +91,7 @@ implements the following new ones.
$reactor->again($id);
Restart timer.
Restart timer. Meant to be overloaded in a subclass.
=head2 detect
Expand Down

0 comments on commit ff28702

Please sign in to comment.