Fix undefined variable when loging out

master
Daniel Berteaud 11 years ago
parent 37a8cbd4fe
commit 351a9421c3
  1. 2
      public/vroom.pl

@ -181,7 +181,7 @@ helper logout => sub {
my $self = shift; my $self = shift;
my ($room) = @_; my ($room) = @_;
# Logout from etherpad # Logout from etherpad
if ($ec && $self->session($room)->{etherpadSessionId}){ if ($ec && $self->session($room) && $self->session($room)->{etherpadSessionId}){
$ec->delete_session($self->session($room)->{etherpadSessionId}); $ec->delete_session($self->session($room)->{etherpadSessionId});
} }
$self->session( expires => 1 ); $self->session( expires => 1 );

Loading…
Cancel
Save