Diff between 0691f7f30e190eb40063df3f5feadd923f7395a8 and a70ad3e32dc75dcc07f6e4e9bf7addf99405ee58

Changed Files

File Additions Deletions Status
profiles/input/device.c +2 -2 modified

Full Patch

diff --git a/profiles/input/device.c b/profiles/input/device.c
index 57667cc..a8d5964 100644
--- a/profiles/input/device.c
+++ b/profiles/input/device.c
@@ -159,6 +159,8 @@ static gboolean intr_watch_cb(GIOChannel *chan, GIOCondition cond, gpointer data
 	if (idev->ctrl_io && !(cond & G_IO_NVAL))
 		g_io_channel_shutdown(idev->ctrl_io, TRUE, NULL);
 
+	btd_service_disconnecting_complete(idev->service, 0);
+
 	/* Enter the auto-reconnect mode if needed */
 	input_device_enter_reconnect_mode(idev);
 
@@ -754,8 +756,6 @@ int input_device_disconnect(struct btd_service *service)
 	if (err < 0)
 		return err;
 
-	btd_service_disconnecting_complete(service, 0);
-
 	return 0;
 }