summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2016-05-10 13:59:51 +0200
committerBastien Nocera <hadess@hadess.net>2016-05-13 12:39:16 +0200
commitff0a1741225996b08472ef7ef4000f43288de7b6 (patch)
tree6603067f43d39d9517b86cec00cddd7f1e1620c6
parentc0431d7990e628b00064fc5b47c66d3c69ba1138 (diff)
downloadbluez-tools-ff0a1741225996b08472ef7ef4000f43288de7b6.tar.gz
bt-agent: Don't wait for AgentReleased signal
This is only useful for applications that do more than handle agents and would stay running afterwards. As we're yanking ourselves off the bus, bluetoothd will notice and everything will be fine.
-rw-r--r--src/bt-agent.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/bt-agent.c b/src/bt-agent.c
index 07cfe86..95c069c 100644
--- a/src/bt-agent.c
+++ b/src/bt-agent.c
@@ -284,9 +284,6 @@ int main(int argc, char *argv[])
g_print("unregistering agent...\n");
agent_manager_unregister_agent(agent_manager, AGENT_PATH, &error);
exit_if_error(error);
-
- /* Waiting for AgentReleased signal */
- g_main_loop_run(mainloop);
}
g_main_loop_unref(mainloop);