mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Close account if user is not registered
This commit is contained in:
parent
32c2fae2f7
commit
a5013dd08d
1 changed files with 1 additions and 0 deletions
|
@ -60,6 +60,7 @@ public interface Manager extends Closeable {
|
||||||
var account = SignalAccount.load(pathConfig.dataPath(), number, true, trustNewIdentity);
|
var account = SignalAccount.load(pathConfig.dataPath(), number, true, trustNewIdentity);
|
||||||
|
|
||||||
if (!account.isRegistered()) {
|
if (!account.isRegistered()) {
|
||||||
|
account.close();
|
||||||
throw new NotRegisteredException();
|
throw new NotRegisteredException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue