Don't throw on not joined.

master
Håvar Aambø Fosstveit 2019-10-30 22:21:02 +01:00
parent b30011c81a
commit a8c6169945
1 changed files with 2 additions and 2 deletions

View File

@ -344,7 +344,7 @@ class Room extends EventEmitter
{ {
// Ensure the Peer is joined. // Ensure the Peer is joined.
if (!peer.joined) if (!peer.joined)
throw new Error('Peer not yet joined'); return;
// Spread to others // Spread to others
this._notification(peer.socket, 'changeDisplayName', { this._notification(peer.socket, 'changeDisplayName', {
@ -358,7 +358,7 @@ class Room extends EventEmitter
{ {
// Ensure the Peer is joined. // Ensure the Peer is joined.
if (!peer.joined) if (!peer.joined)
throw new Error('Peer not yet joined'); return;
// Spread to others // Spread to others
this._notification(peer.socket, 'changePicture', { this._notification(peer.socket, 'changePicture', {