mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-08-04 01:59:29 +00:00
Close account if user is not registered
This commit is contained in:
parent
32c2fae2f7
commit
a5013dd08d
@ -60,6 +60,7 @@ public interface Manager extends Closeable {
|
||||
var account = SignalAccount.load(pathConfig.dataPath(), number, true, trustNewIdentity);
|
||||
|
||||
if (!account.isRegistered()) {
|
||||
account.close();
|
||||
throw new NotRegisteredException();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user