Skip to content
Snippets Groups Projects
Commit c92b6c5b authored by Nicolas Pomepuy's avatar Nicolas Pomepuy Committed by Geoffrey Métais
Browse files

Fix IllegalArgumentException

parent 47856282
No related branches found
No related tags found
No related merge requests found
......@@ -190,7 +190,7 @@ object ExternalMonitor : BroadcastReceiver(), LifecycleObserver, CoroutineScope
@OnLifecycleEvent(Lifecycle.Event.ON_STOP)
internal fun unregister() {
val ctx = VLCApplication.appContext
ctx.unregisterReceiver(this)
if (registered) ctx.unregisterReceiver(this)
registered = false
connected.value = false
devices.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