From 492c094b6734b91ee7dcf8ae680243b98e4f4355 Mon Sep 17 00:00:00 2001 From: Angelika Serwa Date: Wed, 1 Mar 2023 17:10:47 +0100 Subject: [PATCH] Fix toggling screencasting (#28) --- .../rtc/media/screencast/ScreencastServiceConnector.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MembraneRTC/src/main/java/org/membraneframework/rtc/media/screencast/ScreencastServiceConnector.kt b/MembraneRTC/src/main/java/org/membraneframework/rtc/media/screencast/ScreencastServiceConnector.kt index b1b0527..78714b6 100644 --- a/MembraneRTC/src/main/java/org/membraneframework/rtc/media/screencast/ScreencastServiceConnector.kt +++ b/MembraneRTC/src/main/java/org/membraneframework/rtc/media/screencast/ScreencastServiceConnector.kt @@ -26,7 +26,7 @@ internal class ScreencastServiceConnector(private val context: Context) { } override fun onServiceDisconnected(p0: ComponentName?) { - connected = true + connected = false service = null } }