mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-11-29 08:55:48 +00:00
Prevent incorrect error log about saving failed if an exception was thrown
This commit is contained in:
1 parent
9a775171b5
commit
c0f5ff8805
1 file changed
+3
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user