Skip to content

Commit

Permalink
->() > &{}
Browse files Browse the repository at this point in the history
  • Loading branch information
judofyr committed Aug 4, 2011
1 parent 19140a5 commit 994f5d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Plugin/Parallol.pm
Expand Up @@ -21,8 +21,8 @@ sub register {
$self->{paralloling}++;

sub {
&$callback(@_);
&{$self->on_parallol}($self) if --$self->{paralloling} == 0;
$callback->(@_);
$self->on_parallol->($self) if --$self->{paralloling} == 0;
}
}
);
Expand Down

0 comments on commit 994f5d9

Please sign in to comment.