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

Commit abb6027c authored by Felipe Leme's avatar Felipe Leme Committed by The Android Automerger
Browse files

Wrap closeQuietly() on finally block.

BUG: 29123428
Change-Id: Ife7a919343ce4b73eef759bbc87dd37f12a71bca
parent 8555f6d5
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1180,9 +1180,12 @@ public final class ActivityThread {
                AsyncTask.THREAD_POOL_EXECUTOR.execute(new Runnable() {
                    @Override
                    public void run() {
                        try {
                            dumpDatabaseInfo(dup.getFileDescriptor(), args);
                        } finally {
                            IoUtils.closeQuietly(dup);
                        }
                    }
                });
            } else {
                dumpDatabaseInfo(fd, args);