diff --git a/vroom.pl b/vroom.pl index 296f8f5..13c22a2 100755 --- a/vroom.pl +++ b/vroom.pl @@ -1074,8 +1074,8 @@ websocket '/socket.io/:ver/websocket/:id' => sub { } ) }); - delete $peers->{$id}; $self->update_room_last_activity($peers->{$id}->{room}); + delete $peers->{$id}; }); # This is just the end of the initial handshake, we indicate the client we're ready