From a5013dd08db9768d59c9125df5f64657c24940c0 Mon Sep 17 00:00:00 2001 From: AsamK Date: Sun, 5 Dec 2021 15:32:28 +0100 Subject: [PATCH] Close account if user is not registered --- lib/src/main/java/org/asamk/signal/manager/Manager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/main/java/org/asamk/signal/manager/Manager.java b/lib/src/main/java/org/asamk/signal/manager/Manager.java index c9f2bad1..81c2eeb7 100644 --- a/lib/src/main/java/org/asamk/signal/manager/Manager.java +++ b/lib/src/main/java/org/asamk/signal/manager/Manager.java @@ -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(); }