From 557a8ae8589f027c18ecc81e984dc1918ce27283 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Fri, 21 Oct 2011 15:58:27 -0200 Subject: [PATCH] Unregister players' events when disconnected --- audio/avrcp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/audio/avrcp.c b/audio/avrcp.c index e908bf4b7..f06afbf0c 100644 --- a/audio/avrcp.c +++ b/audio/avrcp.c @@ -1119,6 +1119,7 @@ static void state_changed(struct audio_device *dev, avctp_state_t old_state, switch (new_state) { case AVCTP_STATE_DISCONNECTED: player->session = NULL; + player->registered_events = 0; if (player->handler) { avctp_unregister_pdu_handler(player->handler); -- 2.47.3