diff --git a/app/src/main/java/com/fivegmag/a5gmsmediasessionhandler/MediaSessionHandlerMessengerService.kt b/app/src/main/java/com/fivegmag/a5gmsmediasessionhandler/MediaSessionHandlerMessengerService.kt index e1ba0fb..68fb9c8 100644 --- a/app/src/main/java/com/fivegmag/a5gmsmediasessionhandler/MediaSessionHandlerMessengerService.kt +++ b/app/src/main/java/com/fivegmag/a5gmsmediasessionhandler/MediaSessionHandlerMessengerService.kt @@ -76,7 +76,7 @@ class MediaSessionHandlerMessengerService() : Service() { override fun handleMessage(msg: Message) { when (msg.what) { SessionHandlerMessageTypes.REGISTER_CLIENT -> registerClient(msg) - SessionHandlerMessageTypes.UNREGISTER_CLIENT -> registerClient(msg) + SessionHandlerMessageTypes.UNREGISTER_CLIENT -> unregisterClient(msg) SessionHandlerMessageTypes.STATUS_MESSAGE -> handleStatusMessage(msg) SessionHandlerMessageTypes.START_PLAYBACK_BY_SERVICE_LIST_ENTRY_MESSAGE -> handleStartPlaybackByServiceListEntryMessage( msg