Skip to content
Snippets Groups Projects
Commit 9f1ec364 authored by Sandeep Bandaru's avatar Sandeep Bandaru Committed by Android (Google) Code Review
Browse files

Merge "Close PFD when returning via AndroidFuture" into main

parents f84dea94 6f8b0a12
No related branches found
No related tags found
No related merge requests found
......@@ -398,6 +398,9 @@ public abstract class OnDeviceIntelligenceService extends Service {
Slog.e(TAG, "Cannot open file. No ParcelFileDescriptor returned.");
} finally {
future.complete(pfd);
if (pfd != null) {
pfd.close();
}
}
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment