aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_agent.c
diff options
context:
space:
mode:
authorseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2008-09-20 00:38:51 +0000
committerseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2008-09-20 00:38:51 +0000
commit1e4acb3ed824ecd0714347ceb127e592eb447f62 (patch)
tree9788a3871592f699572bcd6945dbe4fe961c3f6d /channels/chan_agent.c
parent66bbb97a968f7f329ede1bccf5972105351f7f9e (diff)
ast_event_unsubscribe in 1.6.0 returns void, not NULL.
Pointed out by Stefan Gofferje on the asterisk-users mailing list. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@143735 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_agent.c')
-rw-r--r--channels/chan_agent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_agent.c b/channels/chan_agent.c
index a235d84ed..f0d913ff3 100644
--- a/channels/chan_agent.c
+++ b/channels/chan_agent.c
@@ -2493,7 +2493,8 @@ static int unload_module(void)
ast_channel_unregister(&agent_tech);
/* Delete devicestate subscription */
if (agent_devicestate_sub) {
- agent_devicestate_sub = ast_event_unsubscribe(agent_devicestate_sub);
+ ast_event_unsubscribe(agent_devicestate_sub);
+ agent_devicestate_sub = NULL;
}
/* Unregister dialplan functions */
ast_custom_function_unregister(&agent_function);