try fixing error that was originally registered here. Are you missing a call to unregisterReceiver()?

video-stream-floating
mosazaid 5 years ago
parent a84027ad6f
commit 8a4dcf2334

@ -269,7 +269,7 @@ class MainActivity : FlutterFragmentActivity(), MethodChannel.MethodCallHandler,
private fun unbindService() {
if (bound) {
videoStreamService!!.videoCallResponseListener = null // unregister
videoStreamService?.videoCallResponseListener = null // unregister
// videoStreamService!!.mActivity = null
unbindService(serviceConnection)
bound = false

@ -833,6 +833,7 @@ class VideoStreamFloatingWidgetService : Service(), Session.SessionListener,
}
if (mSubscriber != null) {
mSubscriber!!.subscribeToAudio = false // mosa added for error that was originally registered here. Are you missing a call to unregisterReceiver()?
mSubscriberViewContainer.removeView(mSubscriber!!.view)
mSession!!.unsubscribe(mSubscriber)
mSubscriber!!.destroy()

Loading…
Cancel
Save