Skip to content

Commit

Permalink
fix: Fixed possible endless loop while stopping service
Browse files Browse the repository at this point in the history
  • Loading branch information
timschneeb committed Oct 29, 2022
1 parent a3deba5 commit 8919a52
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,6 @@ class RootlessAudioProcessorService : BaseAudioProcessorService() {
}

override fun onDestroy() {
super.onDestroy()

isServiceDisposing = true

// Stop recording and release engine
Expand Down Expand Up @@ -255,6 +253,7 @@ class RootlessAudioProcessorService : BaseAudioProcessorService() {
notificationManager.cancel(NOTIFICATION_ID_SERVICE)

stopSelf()
super.onDestroy()
}

// Preferences listener
Expand Down

0 comments on commit 8919a52

Please sign in to comment.