Skip to content

Commit

Permalink
changed order to match example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 1, 2014
1 parent 41834b1 commit f35e401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Plugin/DefaultHelpers.pm
Expand Up @@ -81,8 +81,8 @@ sub _current_route {

sub _delay {
my $self = shift;
my $delay = Mojo::IOLoop->delay(@_);
my $tx = $self->render_later->tx;
my $delay = Mojo::IOLoop->delay(@_);
$delay->catch(sub { $self->render_exception(pop) and undef $tx })->wait;
}

Expand Down

0 comments on commit f35e401

Please sign in to comment.