From 514191a75cd205dab5350c725aebea885e261e24 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 8 Jun 2020 14:07:25 -0700 Subject: [PATCH] adapter: Do not remove client watch directly if discovery fails Client watch is used for both discovery and it filters so in case the client has set the later the watch shall be perserved. --- src/adapter.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/adapter.c b/src/adapter.c index 76acfea70..bf51b120b 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -1651,7 +1651,6 @@ fail: if (client->msg) { reply = btd_error_busy(client->msg); g_dbus_send_message(dbus_conn, reply); - g_dbus_remove_watch(dbus_conn, client->watch); discovery_remove(client, false); return; } -- 2.47.3