File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments