Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Prevent noapi from hanging in onDestroy() on Android 10 (#3636)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluemarvin authored Jul 6, 2020
1 parent 2e47792 commit 2d4e062
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ protected void onResume() {
protected void onDestroy() {
Log.d(LOGTAG, "PlatformActivity onDestroy");
super.onDestroy();
synchronized (activityDestroyedRunnable) {
synchronized (mRenderLock) {
queueRunnable(activityDestroyedRunnable);
try {
activityDestroyedRunnable.wait();
mRenderLock.wait();
} catch(InterruptedException e) {
Log.e(LOGTAG, "activityDestroyedRunnable interrupted: " + e.toString());
}
Expand Down

0 comments on commit 2d4e062

Please sign in to comment.