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);
|
var account = SignalAccount.load(pathConfig.dataPath(), number, true, trustNewIdentity);
|
||||||
|
|
||||||
if (!account.isRegistered()) {
|
if (!account.isRegistered()) {
|
||||||
|
account.close();
|
||||||
throw new NotRegisteredException();
|
throw new NotRegisteredException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user