Permalink
Browse files

ParcelFileDescriptor: can we stop the panic here?

Change-Id: Ifa58336abc264571ee307e3c2d69d3c294e2d8c3
  • Loading branch information...
xdevs23 authored and xlxfoxxlx committed Nov 22, 2016
1 parent 8140726 commit 745b96af23a4453a2e5b9919b38bf825358f0ecf
Showing with 5 additions and 1 deletion.
  1. +5 −1 core/java/android/os/ParcelFileDescriptor.java
@@ -178,7 +178,11 @@ public ParcelFileDescriptor(FileDescriptor fd, FileDescriptor commChannel) {
mWrapped = null;
mFd = fd;
mCommFd = commChannel;
mGuard.open("close");
try {
mGuard.open("close");
} catch(Throwable e) {
Log.w("ParcelFileDescriptor", "Explicit termination method 'close' not called");
}
}
/**

0 comments on commit 745b96a

Please sign in to comment.