Add load message handler for too many connections
This commit is contained in:
parent
fa463b77db
commit
4a703c938d
|
@ -421,6 +421,9 @@ export class GameData {
|
||||||
if (response.startsWith('failed to open save file')) {
|
if (response.startsWith('failed to open save file')) {
|
||||||
this.scene.queueMessage('Save data could not be found. If this is a new account, you can safely ignore this message.', null, true);
|
this.scene.queueMessage('Save data could not be found. If this is a new account, you can safely ignore this message.', null, true);
|
||||||
return resolve(true);
|
return resolve(true);
|
||||||
|
} else if (response.indexOf('Too many connections') > -1) {
|
||||||
|
this.scene.queueMessage('Too many people are trying to connect and the server is overloaded. Please try again later.', null, true);
|
||||||
|
return resolve(false);
|
||||||
}
|
}
|
||||||
console.error(response);
|
console.error(response);
|
||||||
return resolve(false);
|
return resolve(false);
|
||||||
|
|
Loading…
Reference in New Issue