Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d39d26f8 authored by Lukas Reschke's avatar Lukas Reschke Committed by David A. Velasco
Browse files

Close in finally block

parent 5c874143
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -167,10 +167,15 @@ public class Log_OC {
	            mBuf.newLine();
	            mBuf.write(text);
	            mBuf.newLine();
	        } catch (IOException e) {
	            e.printStackTrace();
	        } finally {
                try {
                    mBuf.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }

            // Check if current log file size is bigger than the max file size defined
            if (mLogFile.length() > MAX_FILE_SIZE) {