Commit 5dfa9e69 authored by Geoffrey Métais's avatar Geoffrey Métais

Fix service connection leak

parent b6f05b8d
......@@ -232,6 +232,7 @@ object MediaUtils {
override fun onConnected(service: PlaybackService) {
synchronized(this) {
runnable.run(service)
client.disconnect()
}
handler.removeCallbacksAndMessages(null)
if (this::dialog.isInitialized) dialog.cancel()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment