Skip to content

Commit

Permalink
fixed license link and added small optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 27, 2012
1 parent 3d8a28f commit 532cc94
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile.PL
Expand Up @@ -17,7 +17,7 @@ WriteMakefile(
requires => {perl => '5.010001'},
resources => {
homepage => 'http://mojolicio.us',
license => 'http://dev.perl.org/licenses/',
license => 'http://www.opensource.org/licenses/artistic-license-2.0',
MailingList => 'http://groups.google.com/group/mojolicious',
repository => 'http://github.com/kraih/mojo',
bugtracker => 'http://github.com/kraih/mojo/issues'
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop.pm
Expand Up @@ -209,7 +209,7 @@ sub _cleaner {

# Graceful shutdown
$self->_remove(delete $self->{cleaner})
unless keys(%$connections) || keys(%{$self->{servers}});
unless keys %$connections || keys %{$self->{servers}};
$self->stop if $self->max_connections == 0 && keys %$connections == 0;
}
);
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Reactor/Poll.pm
Expand Up @@ -53,10 +53,10 @@ sub one_tick {

# Timers
while (my ($id, $t) = each %{$self->{timers} || {}}) {
next unless $t->{time} <= time;
next unless $t->{time} <= (my $time = time);

# Recurring timer
if (exists $t->{recurring}) { $t->{time} = time + $t->{recurring} }
if (exists $t->{recurring}) { $t->{time} = $time + $t->{recurring} }

# Normal timer
else { $self->remove($id) }
Expand Down

0 comments on commit 532cc94

Please sign in to comment.