linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/2] core/service: Make sure service is disconnected before shutdown
@ 2013-07-05 14:03 Luiz Augusto von Dentz
  2013-07-05 14:03 ` [PATCH BlueZ 2/2] core/device: Fix crash while freeing services list Luiz Augusto von Dentz
  2013-07-08 11:46 ` [PATCH BlueZ 1/2] core/service: Make sure service is disconnected before shutdown Mikel Astiz
  0 siblings, 2 replies; 7+ messages in thread
From: Luiz Augusto von Dentz @ 2013-07-05 14:03 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This ensures that the service is disconnected before setting the state
to unavailable.
---
 src/service.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/service.c b/src/service.c
index 83e1c1a..dce5c05 100644
--- a/src/service.c
+++ b/src/service.c
@@ -170,6 +170,7 @@ int service_probe(struct btd_service *service)
 
 void service_shutdown(struct btd_service *service)
 {
+	btd_service_disconnect(service);
 	change_state(service, BTD_SERVICE_STATE_UNAVAILABLE, 0);
 	service->profile->device_remove(service);
 	service->device = NULL;
-- 
1.8.1.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-07-08 15:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-05 14:03 [PATCH BlueZ 1/2] core/service: Make sure service is disconnected before shutdown Luiz Augusto von Dentz
2013-07-05 14:03 ` [PATCH BlueZ 2/2] core/device: Fix crash while freeing services list Luiz Augusto von Dentz
2013-07-08 11:46 ` [PATCH BlueZ 1/2] core/service: Make sure service is disconnected before shutdown Mikel Astiz
2013-07-08 12:50   ` Luiz Augusto von Dentz
2013-07-08 14:13     ` Mikel Astiz
2013-07-08 14:52       ` Luiz Augusto von Dentz
2013-07-08 15:18         ` Luiz Augusto von Dentz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).