Skip to content

Commit fbc8baa

Browse files
committed
squash: Drop duplicate listener.
1 parent ce15d55 commit fbc8baa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/xmpp/Lobby.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,16 +385,17 @@ export default class Lobby {
385385
}
386386
});
387387
this.lobbyRoom.addEventListener(XMPPEvents.ROOM_JOIN_ERROR, reject);
388-
this.lobbyRoom.addEventListener(XMPPEvents.ROOM_CONNECT_NOT_ALLOWED_ERROR, reject);
389388
this.lobbyRoom.addEventListener(XMPPEvents.ROOM_CONNECT_ERROR, reject);
390-
this.lobbyRoom.addEventListener(XMPPEvents.ROOM_CONNECT_NOT_ALLOWED_ERROR, type => {
389+
this.lobbyRoom.addEventListener(XMPPEvents.ROOM_CONNECT_NOT_ALLOWED_ERROR, (type, txt) => {
391390
if (type === AUTH_ERROR_TYPES.ROOM_CREATION_RESTRICTION) {
392391
logger.info('Lobby room creation not allowed, we will retry on main room.');
393392
this.lobbyRoom?.clean();
394393

395394
this.lobbyRoom = undefined;
396395

397396
this.mainRoom.join();
397+
} else {
398+
reject(type, txt);
398399
}
399400
});
400401

0 commit comments

Comments
 (0)