mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-08 00:16:09 +00:00
Close in finally block
This commit is contained in:
parent
5c87414390
commit
d39d26f842
@ -167,10 +167,15 @@ public class Log_OC {
|
|||||||
mBuf.newLine();
|
mBuf.newLine();
|
||||||
mBuf.write(text);
|
mBuf.write(text);
|
||||||
mBuf.newLine();
|
mBuf.newLine();
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
} finally {
|
||||||
|
try {
|
||||||
mBuf.close();
|
mBuf.close();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Check if current log file size is bigger than the max file size defined
|
// Check if current log file size is bigger than the max file size defined
|
||||||
if (mLogFile.length() > MAX_FILE_SIZE) {
|
if (mLogFile.length() > MAX_FILE_SIZE) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user