catch all exceptions when closing closable
This commit is contained in:
parent
2f59d66fd1
commit
ab516299e7
|
@ -356,7 +356,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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -366,6 +367,7 @@ public class FileBackend {
|
|||
try {
|
||||
socket.close();
|
||||
} catch (IOException e) {
|
||||
Log.d(Config.LOGTAG, "unable to close socket", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -375,6 +377,7 @@ public class FileBackend {
|
|||
try {
|
||||
socket.close();
|
||||
} catch (IOException e) {
|
||||
Log.d(Config.LOGTAG, "unable to close server socket", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue