mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 08:16:04 +00:00
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')) {
|
||||
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);
|
||||
} 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);
|
||||
return resolve(false);
|
||||
|
Loading…
Reference in New Issue
Block a user