[gnome-bluetooth/wip/hadess/agent-fixes: 1/3] agent: Add debug when unregistering an agent
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/wip/hadess/agent-fixes: 1/3] agent: Add debug when unregistering an agent
- Date: Wed, 15 Dec 2021 16:16:47 +0000 (UTC)
commit f33f18fd7c6fffcaba18446754cdf59e7988fa17
Author: Bastien Nocera <hadess hadess net>
Date: Wed Dec 15 17:11:46 2021 +0100
agent: Add debug when unregistering an agent
lib/bluetooth-agent.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/lib/bluetooth-agent.c b/lib/bluetooth-agent.c
index 89e04254..4e82a74e 100644
--- a/lib/bluetooth-agent.c
+++ b/lib/bluetooth-agent.c
@@ -526,8 +526,10 @@ gboolean bluetooth_agent_unregister(BluetoothAgent *agent)
{
g_return_val_if_fail (BLUETOOTH_IS_AGENT (agent), FALSE);
- if (agent->agent_manager == NULL)
+ if (agent->agent_manager == NULL) {
+ g_debug ("AgentManager not registered yet");
return FALSE;
+ }
agent_manager1_call_unregister_agent (agent->agent_manager,
agent->path,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]