From a8c61699454bff9e7fd9511596d9ed835061c284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5var=20Aamb=C3=B8=20Fosstveit?= Date: Wed, 30 Oct 2019 22:21:02 +0100 Subject: [PATCH] Don't throw on not joined. --- server/lib/Room.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/lib/Room.js b/server/lib/Room.js index a8d595b..3144ce9 100644 --- a/server/lib/Room.js +++ b/server/lib/Room.js @@ -344,7 +344,7 @@ class Room extends EventEmitter { // Ensure the Peer is joined. if (!peer.joined) - throw new Error('Peer not yet joined'); + return; // Spread to others this._notification(peer.socket, 'changeDisplayName', { @@ -358,7 +358,7 @@ class Room extends EventEmitter { // Ensure the Peer is joined. if (!peer.joined) - throw new Error('Peer not yet joined'); + return; // Spread to others this._notification(peer.socket, 'changePicture', {