diff --git a/src/main/java/org/asamk/signal/manager/storage/SignalAccount.java b/src/main/java/org/asamk/signal/manager/storage/SignalAccount.java index 9922ca57..c9051335 100644 --- a/src/main/java/org/asamk/signal/manager/storage/SignalAccount.java +++ b/src/main/java/org/asamk/signal/manager/storage/SignalAccount.java @@ -585,7 +585,9 @@ public class SignalAccount implements Closeable { @Override public void close() throws IOException { - save(); + if (fileChannel.isOpen()) { + save(); + } synchronized (fileChannel) { try { lock.close();