Do not try to remove the participant if the session name isn't defined

master
Daniel Berteaud 11 years ago
parent 2affe56392
commit e5f25a93c9
  1. 2
      public/vroom.pl

@ -736,7 +736,7 @@ get 'feedback_thanks' => 'feedback_thanks';
get '/goodbye/(:room)' => sub { get '/goodbye/(:room)' => sub {
my $self = shift; my $self = shift;
my $room = $self->stash('room'); my $room = $self->stash('room');
if ($self->get_room($room)){ if ($self->get_room($room) && $self->session('name')){
$self->remove_participant($room,$self->session('name')); $self->remove_participant($room,$self->session('name'));
} }
$self->logout($room); $self->logout($room);

Loading…
Cancel
Save