Merge pull request #1058 from thecodingmachine/fixAxiosErrors

FIX: rejected map axios promises are now catched
This commit is contained in:
Kharhamel 2021-05-18 12:12:49 +02:00 committed by GitHub
commit b57a9957a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1043,10 +1043,10 @@ ${escapedMessage}
}
//todo: push that into the gameManager
private async loadNextGame(exitSceneIdentifier: string){
private loadNextGame(exitSceneIdentifier: string): void {
const {roomId, hash} = Room.getIdFromIdentifier(exitSceneIdentifier, this.MapUrlFile, this.instance);
const room = new Room(roomId);
await gameManager.loadMap(room, this.scene);
gameManager.loadMap(room, this.scene).catch(() => {});
}
private startUser(layer: ITiledMapTileLayer): PositionInterface {