fix streaming. don't close the session until done
This commit is contained in:
parent
d9635343db
commit
2a33785d11
2 changed files with 12 additions and 3 deletions
|
|
@ -65,9 +65,14 @@ sub call {
|
|||
sub {
|
||||
my $res = shift;
|
||||
|
||||
# Close the Session
|
||||
$env->{'webgui.session'}->close();
|
||||
delete $env->{'webgui.session'};
|
||||
# Close the Session if we aren't streaming
|
||||
if ( !$env->{'webgui.session'}->response->streaming ) {
|
||||
$env->{'webgui.session'}->close();
|
||||
delete $env->{'webgui.session'};
|
||||
}
|
||||
|
||||
# If we are streaming, the session will be closed inside of
|
||||
# WebGUI.pm
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue