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 } }