aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart
diff options
context:
space:
mode:
authorChristian Schneppe <christian.schneppe@pix-art.de>2019-10-26 19:39:41 +0200
committerChristian Schneppe <christian.schneppe@pix-art.de>2019-10-26 19:39:41 +0200
commit001da15a334e0cfa4d8e82fcc3e65d276c1c5233 (patch)
treef93920c82603a93d6c997149528194d88c6c157e /src/main/java/de/pixart
parentbbc79c5ee177e555f5709c810ef23ba76da60c1d (diff)
catch all exceptions when closing closable
Diffstat (limited to 'src/main/java/de/pixart')
-rw-r--r--src/main/java/de/pixart/messenger/persistance/FileBackend.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/persistance/FileBackend.java b/src/main/java/de/pixart/messenger/persistance/FileBackend.java
index e34cb9074..5f66850e3 100644
--- a/src/main/java/de/pixart/messenger/persistance/FileBackend.java
+++ b/src/main/java/de/pixart/messenger/persistance/FileBackend.java
@@ -1397,7 +1397,8 @@ public class FileBackend {
if (stream != null) {
try {
stream.close();
- } catch (IOException e) {
+ } catch (Exception e) {
+ Log.d(Config.LOGTAG, "unable to close stream", e);
}
}
}
@@ -1407,6 +1408,7 @@ public class FileBackend {
try {
socket.close();
} catch (IOException e) {
+ Log.d(Config.LOGTAG, "unable to close socket", e);
}
}
}
@@ -1416,6 +1418,7 @@ public class FileBackend {
try {
socket.close();
} catch (IOException e) {
+ Log.d(Config.LOGTAG, "unable to close socket", e);
}
}
}