Skip to content

Commit

Permalink
Screenshot: Unregister task listener on destroy
Browse files Browse the repository at this point in the history
This prevents submitting tasks after the threadloop has been shutdown.

Change-Id: Id899ddc9476d045c78c4e85bfac7e7a9b29cee6d
Signed-off-by: DennySPb <[email protected]>
  • Loading branch information
OnlyTomInSecond authored and DennySPB committed Dec 19, 2022
1 parent 91dd165 commit 1078567
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ void onDestroy() {
removeWindow();
releaseMediaPlayer();
releaseContext();
TaskStackChangeListeners.getInstance().unregisterTaskStackListener(mTaskListener);
mBgExecutor.shutdownNow();
}

Expand Down

0 comments on commit 1078567

Please sign in to comment.