[gnome-bluetooth] [Bug 589593] New: Crashes when disconnecting audio service
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-bluetooth] [Bug 589593] New: Crashes when disconnecting audio service
- Date: Fri, 24 Jul 2009 13:05:45 +0000 (UTC)
commit 47e8dd644f86ebcf79d0efb6299c8a63c0334c56
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jul 24 12:12:38 2009 +0100
[Bug 589593] New: Crashes when disconnecting audio service
lib/bluetooth-client.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 29b8c27..be83ae3 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -1611,6 +1611,10 @@ service_to_index (const char *service)
if (g_str_equal (connectable_interfaces[i], service) != FALSE)
return i;
}
+ for (i = 0; i < G_N_ELEMENTS (detectable_interfaces); i++) {
+ if (g_str_equal (detectable_interfaces[i], service) != FALSE)
+ return i + G_N_ELEMENTS (connectable_interfaces);
+ }
g_assert_not_reached ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]