Skip to content

Commit

Permalink
Fix WindowService destroy bug
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuxiang committed Mar 6, 2023
1 parent b6451f9 commit c30187c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ class WindowService : android.app.Service() {

override fun onDestroy() {
androidWindow.close()
engine.destroy()
try {
engine.destroy()
} catch (_: Exception) {
}
androidWindow.app?.running = false
}
}

0 comments on commit c30187c

Please sign in to comment.