From e5f25a93c9e74335a07fa702b0944e1ae8fa40df Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 9 Jul 2014 08:00:21 +0200 Subject: [PATCH] Do not try to remove the participant if the session name isn't defined --- public/vroom.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/vroom.pl b/public/vroom.pl index 8c25501..2405349 100755 --- a/public/vroom.pl +++ b/public/vroom.pl @@ -736,7 +736,7 @@ get 'feedback_thanks' => 'feedback_thanks'; get '/goodbye/(:room)' => sub { my $self = shift; 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->logout($room);