Do not broadcast signaling message if not needed

This commit is contained in:
Daniel Berteaud 2015-08-07 12:01:18 +02:00
parent b8a9ac97fe
commit 5c3090302d
1 changed files with 1 additions and 1 deletions

2
vroom
View File

@ -1398,7 +1398,7 @@ websocket '/socket.io/:ver/websocket/:id' => sub {
$self->redis->publish('signaling:peer:' . $to, Mojo::JSON::to_json($msg));
}
# No dest, multicast this to every members of the room
else{
elsif (!$to){
$self->signal_broadcast_room({
from => $id,
msg => $msg