You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 3, 2024. It is now read-only.
First i am registrate service : private var disposableBonjourBradcast: Disposable = Disposables.empty()
val chatNameCode = PrefProvider.getInstance().currentTourCode
val broadcastConfig = BonjourBroadcastConfig(
type = "_$chatNameCode._tcp",
name = PrefProvider.getInstance().userId,
address = inetAddress,
port = tcpServerPort,
txtRecords = mapOf(
HOST to inetAddress.hostAddress!!,
TCP_PORT to tcpServerPort.toString(),
UDP_PORT to udpServerPort.toString(),
USER_ID to PrefProvider.getInstance().userId,
USER_TYPE to PrefProvider.getInstance().myCurrentRole,
USER_NAME to PrefProvider.getInstance().userName,
))
disposableBonjourBradcast = rxBonjour.newBroadcast(broadcastConfig)
.onErrorComplete { throw ConnectionException(it) }
.subscribeOn(Schedulers.io())
.subscribe()
It is work ok.
But when i try to unsubscribe for re -register service for example to pull to-refresh by this :
disposableBonjourBradcast.dispose()
My screen became freeze some during milliseconds. In logcat i see terrible message:
I/Choreographer: Skipped 119 frames! The application may be doing too much work on its main thread.