mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-24 09:34:20 +01:00
Prevent incorrect error log about saving failed if an exception was thrown
This commit is contained in:
@@ -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