Skip to content

Commit

Permalink
small optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 22, 2013
1 parent ad84e01 commit 4a5e6c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop/Delay.pm
Expand Up @@ -33,7 +33,7 @@ sub _step {
$self->{args}[$id] = [@_];
return $self->{pending} if --$self->{pending} || $self->{lock};
local $self->{lock} = 1;
my @args = (map {@$_} grep {defined} @{delete($self->{args}) || []});
my @args = map {@$_} @{delete $self->{args}};

$self->{counter} = 0;
if (my $cb = shift @{$self->{steps} ||= []}) { $self->$cb(@args) }
Expand Down

0 comments on commit 4a5e6c4

Please sign in to comment.