Fix room ping

master
Daniel Berteaud 10 years ago
parent bac285b055
commit 5c241c1e99
  1. 2
      vroom.pl

@ -1331,7 +1331,7 @@ any '/api' => sub {
} }
# Handle activity pings sent every minute by each participant # Handle activity pings sent every minute by each participant
elsif ($req->{action} eq 'ping'){ elsif ($req->{action} eq 'ping'){
$self->ping_room($room); $self->ping_room($room->{name});
# Cleanup expired rooms every ~10 pings # Cleanup expired rooms every ~10 pings
if ((int (rand 100)) <= 10){ if ((int (rand 100)) <= 10){
$self->purge_rooms; $self->purge_rooms;

Loading…
Cancel
Save