Skip to content

Commit

Permalink
remove destroy flutter engine
Browse files Browse the repository at this point in the history
  • Loading branch information
jackle291 committed Feb 5, 2024
1 parent f3e717b commit 73cc539
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,6 @@ class BackgroundWorker(
if (result != null) {
this.completer?.set(result)
}

// If stopEngine is called from `onStopped`, it may not be from the main thread.
Handler(Looper.getMainLooper()).post {
engine?.destroy()
engine = null
}
}

override fun onMethodCall(call: MethodCall, r: MethodChannel.Result) {
Expand Down

0 comments on commit 73cc539

Please sign in to comment.