diff options
Diffstat (limited to 'audio/control.c')
-rw-r--r-- | audio/control.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/control.c b/audio/control.c index 1a3e17b4..5cf68cdf 100644 --- a/audio/control.c +++ b/audio/control.c @@ -691,6 +691,8 @@ static void avctp_server_cb(GIOChannel *chan, int err, const bdaddr_t *src, if (!dev->control) dev->control = control_init(dev); + device_remove_control_timer(dev); + session->state = AVCTP_STATE_CONNECTING; session->sock = g_io_channel_unix_get_fd(chan); @@ -820,6 +822,8 @@ gboolean avrcp_connect(struct audio_device *dev) return FALSE; } + device_remove_control_timer(dev); + session->dev = dev; session->state = AVCTP_STATE_CONNECTING; |