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

Properly release current renderer

parent 8e7183da
No related branches found
No related tags found
No related merge requests found
Pipeline #5290 passed with stage
in 3 minutes and 52 seconds
......@@ -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