diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-02-26 06:42:59 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-02-26 06:42:59 +0100 |
commit | 09f4164cb5a096a6200736247c9ba4493d50e270 (patch) | |
tree | 344c99b5d5c851ae8de87f9fe1b5b790dd09501d /src/agent.c | |
parent | ba0da2f37c8a562684c58595e9a21c1cf96a3765 (diff) | |
download | connman-09f4164cb5a096a6200736247c9ba4493d50e270.tar.gz connman-09f4164cb5a096a6200736247c9ba4493d50e270.tar.bz2 connman-09f4164cb5a096a6200736247c9ba4493d50e270.zip |
Fix agent cleanup function
Diffstat (limited to 'src/agent.c')
-rw-r--r-- | src/agent.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/agent.c b/src/agent.c index 4765868d..b7db03c6 100644 --- a/src/agent.c +++ b/src/agent.c @@ -107,8 +107,13 @@ void __connman_agent_cleanup(void) if (agent_watch > 0) g_dbus_remove_watch(connection, agent_watch); + if (agent_path == NULL) + return; + msg = dbus_message_new_method_call(agent_sender, agent_path, CONNMAN_AGENT_INTERFACE, "Release"); + if (msg == NULL) + return; dbus_message_set_no_reply(msg, TRUE); |