Skip to content

Commit

Permalink
no need to increment value again
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 3, 2014
1 parent f490ac9 commit 65a998c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Controller.pm
Expand Up @@ -194,7 +194,7 @@ sub rendered {

# Finish transaction
my $stash = $self->stash;
unless ($stash->{'mojo.finished'}++) {
if (!$stash->{'mojo.finished'} && ++$stash->{'mojo.finished'}) {

# Disable auto rendering and stop timer
my $app = $self->render_later->app;
Expand Down

0 comments on commit 65a998c

Please sign in to comment.