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

Commit bc89f5d3 authored by Jean Chalard's avatar Jean Chalard
Browse files

Correctly close the gzip stream

I had gotten the chain call in reverse.
Bug: 6177523

Change-Id: Ic5b76425de2d5d05d5132f8d2c7ade0d79c14ccc
parent 1fe943aa
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -196,8 +196,8 @@ public class BinaryDictionaryFileDumper {
            } finally {
                // Ignore exceptions while closing files.
                try {
                    // afd.close() will close inputStream, we should not call inputStream.close().
                    if (null != afd) afd.close();
                    // inputStream.close() will close afd, we should not call afd.close().
                    if (null != inputStream) inputStream.close();
                } catch (Exception e) {
                    Log.e(TAG, "Exception while closing a cross-process file descriptor : " + e);
                }