1
0
mirror of https://github.com/dani/vroom.git synced 2024-06-01 21:11:41 +02:00

Only delete peers object after its last use

This commit is contained in:
Daniel Berteaud 2015-03-10 19:11:18 +01:00
parent ea73a4009d
commit 175edfd276

View File

@ -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