Permalink
Browse files

decremented exit guard when failed to write header

  • Loading branch information...
1 parent 09aaa96 commit 14f73fe4fc44f2cfbf6835cded58760f6a65fcca @maedama maedama committed Oct 11, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Twiggy/Server.pm
View
@@ -369,6 +369,9 @@ sub _write_psgi_response {
local $@;
eval { $cv->send($_[0]->recv); 1 } or $cv->croak($@);
});
+ } else {
+ $self->{exit_guard}->end;
+ eval { $cv->send($_[0]->recv); 1 } or $cv->croak($@);
}
});

0 comments on commit 14f73fe

Please sign in to comment.