mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
renable login after fail attempt (#4552)
Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
parent
4c31527832
commit
92f941a54c
7 changed files with 16 additions and 2 deletions
|
|
@ -116,6 +116,7 @@ export class SessionCommands {
|
|||
SessionCommands.updateStatus(StatusEnum.DISCONNECTED, `Login failed: unknown error: ${raw.responseCode}`);
|
||||
}
|
||||
|
||||
SessionPersistence.loginFailed();
|
||||
SessionCommands.disconnect();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,10 @@ export class SessionPersistence {
|
|||
ServerDispatch.loginSuccessful(options);
|
||||
}
|
||||
|
||||
static loginFailed() {
|
||||
ServerDispatch.loginFailed();
|
||||
}
|
||||
|
||||
static connectionClosed(reason: number) {
|
||||
ServerDispatch.connectionClosed(reason);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue