Skip to content

Commit

Permalink
fix: terminate control point.
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyroid committed May 5, 2024
1 parent 9a51cc3 commit d713fb9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,13 @@ class StreamViewModel @Inject constructor(
runCatching {
_searching.value = false
_isDevicesVisible.value = false

controlPoint?.removeDiscoveryListener(this)
controlPoint?.stop()
controlPoint?.search()
controlPoint?.terminate()
controlPoint = null

devices = emptyList()
}
}
Expand Down

0 comments on commit d713fb9

Please sign in to comment.