GNOME Bugzilla – Bug 576442
Use services "connected", not device's property
Last modified: 2009-03-27 10:18:49 UTC
When disconnecting a device, it might try to connect to us again. To avoid the menu item switching to connected again, and disconnected, we should use the services' statuses instead, not the device's property. In update_device_list(), "connected" should be checking in the services hashtable, not the CONNECTED column.
Easier is to call Disconnect on the services instead.
That should fix the glitch: http://svn.gnome.org/viewvc/gnome-bluetooth?view=revision&revision=550