mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Prevent incorrect error log about saving failed if an exception was thrown
This commit is contained in:
parent
9a775171b5
commit
c0f5ff8805
1 changed files with 3 additions and 1 deletions
|
@ -585,7 +585,9 @@ public class SignalAccount implements Closeable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void close() throws IOException {
|
public void close() throws IOException {
|
||||||
save();
|
if (fileChannel.isOpen()) {
|
||||||
|
save();
|
||||||
|
}
|
||||||
synchronized (fileChannel) {
|
synchronized (fileChannel) {
|
||||||
try {
|
try {
|
||||||
lock.close();
|
lock.close();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue