From 0a304dcabb7732dda0111c0a80244440e4db580b Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 16 Oct 2014 21:03:51 +0200 Subject: [PATCH] Simplify logout --- vroom.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vroom.pl b/vroom.pl index 2b9df99..0746e84 100755 --- a/vroom.pl +++ b/vroom.pl @@ -133,14 +133,13 @@ helper login => sub { helper logout => sub { my $self = shift; my ($room) = @_; - my $ret = {}; # Logout from etherpad if ($ec && $self->session($room) && $self->session($room)->{etherpadSessionId}){ $ec->delete_session($self->session($room)->{etherpadSessionId}); } $self->session( expires => 1 ); $self->app->log->info($self->session('name') . " logged out"); - return {ok => 1}; + return 1; }; # Create a new room in the DB