Skip to content
Snippets Groups Projects
Commit 3d335798 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Properly release current renderer

(cherry picked from commit 87c19f9a)
parent c7d60c09
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,9 @@ object RendererDelegate : RendererDiscoverer.EventListener {
if (!started) return
started = false
for (discoverer in discoverers) discoverer.stop()
if (isAppStarted()) PlaybackService.renderer.value = null
if (isAppStarted() || PlaybackService.service.value?.run { !isPlaying } != false) {
PlaybackService.renderer.value = null
}
clear()
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment