From 5c3090302dfd10af35ebeed9dabe219dd279cff8 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 7 Aug 2015 12:01:18 +0200 Subject: [PATCH] Do not broadcast signaling message if not needed --- vroom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vroom b/vroom index 2e851cf..6c7da6f 100755 --- a/vroom +++ b/vroom @@ -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