Merge "Check before closing the CloseGuard if not closed yet" into qt-dev

This commit is contained in:
Mehdi Alizadeh
2019-04-16 18:01:33 +00:00
committed by Android (Google) Code Review

View File

@@ -271,7 +271,9 @@ public final class AppPredictor {
if (mCloseGuard != null) {
mCloseGuard.warnIfOpen();
}
destroy();
if (!mIsClosed.get()) {
destroy();
}
} finally {
super.finalize();
}