From 1af86fb9d1717a27b3a776fc0fb62c96045ccb9a Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 24 Sep 2008 19:36:57 -0700 Subject: device_browse should fail if there's a SDP discovery already active --- src/device.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/device.c b/src/device.c index a35f79a4..e7f1c1fa 100644 --- a/src/device.c +++ b/src/device.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include @@ -1122,6 +1123,9 @@ int device_browse(struct btd_device *device, DBusConnection *conn, uuid_t uuid; bt_callback_t cb; + if (device->discov_active) + return -EBUSY; + adapter_get_address(adapter, &src); req = g_new0(struct browse_req, 1); -- cgit