Closed shilinding closed 11 months ago
Describe the bug There is a small bug that the event for UNREGISTER_CLIENT message should be unregisterClient(msg), not registerClient(msg).
unregisterClient(msg)
registerClient(msg)
inner class IncomingHandler( context: Context, private val applicationContext: Context = context.applicationContext ) : Handler() { override fun handleMessage(msg: Message) { when (msg.what) { SessionHandlerMessageTypes.REGISTER_CLIENT -> registerClient(msg) SessionHandlerMessageTypes.UNREGISTER_CLIENT -> registerClient(msg) SessionHandlerMessageTypes.STATUS_MESSAGE -> handleStatusMessage(msg) SessionHandlerMessageTypes.START_PLAYBACK_BY_SERVICE_LIST_ENTRY_MESSAGE -> handleStartPlaybackByServiceListEntryMessage( msg ) SessionHandlerMessageTypes.SET_M5_ENDPOINT -> setM5Endpoint(msg) SessionHandlerMessageTypes.CONSUMPTION_REPORT -> handleConsumptionReportMessage(msg) else -> super.handleMessage(msg) } }
Describe the bug There is a small bug that the event for UNREGISTER_CLIENT message should be
unregisterClient(msg)
, notregisterClient(msg)
.