From: Vinicius Costa Gomes <vinicius.gomes@xxxxxxxxxxxxx> Sometimes we may want that a discovery session to continue existing for more than a discovery window. For example, testing starting a pairing while a discovery session is running. --- test/test-discovery | 8 -------- 1 file changed, 8 deletions(-) diff --git a/test/test-discovery b/test/test-discovery index 269c51c..08dfd0b 100755 --- a/test/test-discovery +++ b/test/test-discovery @@ -22,10 +22,6 @@ def device_found(address, properties): print() -def property_changed(name, value): - if (name == "Discovering" and not value): - mainloop.quit() - if __name__ == '__main__': dbus.mainloop.glib.DBusGMainLoop(set_as_default=True) @@ -53,10 +49,6 @@ if __name__ == '__main__': dbus_interface = "org.bluez.Adapter", signal_name = "DeviceFound") - bus.add_signal_receiver(property_changed, - dbus_interface = "org.bluez.Adapter", - signal_name = "PropertyChanged") - adapter.StartDiscovery() mainloop = GObject.MainLoop() -- 1.7.11.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html