projects
/
platform
/
upstream
/
bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eea4304
)
client: Don't auto register agent on non-interactive mode
18/204918/1
author
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Wed, 21 Feb 2018 11:02:42 +0000
(13:02 +0200)
committer
Amit Purwar
<amit.purwar@samsung.com>
Mon, 15 Apr 2019 03:31:52 +0000
(09:01 +0530)
There is no use to register an agent when on non-interactive mode.
Change-Id: Idbbac0630b0ea901cceeb710bdae32a4e03fbe45
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
client/main.c
patch
|
blob
|
history
diff --git
a/client/main.c
b/client/main.c
index
998cab4
..
19e1a60
100644
(file)
--- a/
client/main.c
+++ b/
client/main.c
@@
-520,7
+520,8
@@
static void proxy_added(GDBusProxy *proxy, void *user_data)
if (!agent_manager) {
agent_manager = proxy;
- if (auto_register_agent)
+ if (auto_register_agent &&
+ !bt_shell_get_env("NON_INTERACTIVE"))
agent_register(dbus_conn, agent_manager,
auto_register_agent);
}