mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-08-02 08:57:53 -07:00
renable login after fail attempt (#4552)
Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
co-authored by
Jeremy Letto
parent
4c31527832
commit
92f941a54c
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user