diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/adapter.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/adapter.c b/src/adapter.c index f192ccba..d850bee3 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -806,6 +806,9 @@ static DBusMessage *set_discoverable_timeout(DBusConnection *conn, struct btd_adapter *adapter = data; const char *path; + if (adapter->discov_timeout == timeout && timeout == 0) + return dbus_message_new_method_return(msg); + if (adapter->discov_timeout_id) { g_source_remove(adapter->discov_timeout_id); adapter->discov_timeout_id = 0; |