Skip to content

Commit

Permalink
fixed warnings in Mojo::IOLoop::Delay (closes #621)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 13, 2014
1 parent 00e767a commit acee2b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Changes
@@ -1,10 +1,11 @@

5.0 2014-05-13
5.0 2014-05-14
- Code name "Tiger Face", this is a major release.
- Changed heuristics for number detection in Mojo::JSON to better line up
with user expectations.
- Removed deprecated support for "X-Forwarded-HTTPS".
- Removed generate_port method from Mojo::IOLoop.
- Fixed warnings in Mojo::IOLoop::Delay.

4.99 2014-05-12
- Added support for performing blocking and non-blocking requests at the
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop/Delay.pm
Expand Up @@ -50,7 +50,7 @@ sub _step {
my ($self, $id, $offset, $len) = (shift, shift, shift, shift);

$self->{args}[$id]
= [defined $len ? splice(@_, $offset, $len) : splice(@_, $offset)];
= [@_ ? defined $len ? splice @_, $offset, $len : splice @_, $offset : ()];
return $self if $self->{fail} || --$self->{pending} || $self->{lock};
local $self->{lock} = 1;
my @args = map {@$_} @{delete $self->{args}};
Expand Down

0 comments on commit acee2b3

Please sign in to comment.