fix: revoked auth key importing
This commit is contained in:
parent
617d47d949
commit
4b62692a8e
1 changed files with 1 additions and 0 deletions
|
@ -59,6 +59,7 @@ export async function importAccount(
|
|||
dcId: asNonNull(session.primaryDcs).main.id,
|
||||
}
|
||||
} catch (e) {
|
||||
await client.close()
|
||||
await deleteAccount(accountId)
|
||||
if (is404) {
|
||||
throw new Error('Invalid session (auth key not found)')
|
||||
|
|
Loading…
Reference in a new issue