Fix an uninitialized var

master
Daniel Berteaud 10 years ago
parent f5c50a68f8
commit c0b35ef075
  1. 1
      vroom.pl

@ -1618,6 +1618,7 @@ any '/api' => sub {
if ($self->session($room->{name}) && $self->session($room->{name})->{role}){
# If we just have been promoted to owner
if ($self->session($room->{name})->{role} ne 'owner' &&
$self->get_peer_role({room => $room->{name}, peer_id => $peer_id}) &&
$self->get_peer_role({room => $room->{name}, peer_id => $peer_id}) eq 'owner'){
$self->session($room->{name})->{role} = 'owner';
$self->associate_key_to_room(

Loading…
Cancel
Save