diff options
author | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-09-20 00:38:51 +0000 |
---|---|---|
committer | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-09-20 00:38:51 +0000 |
commit | 1e4acb3ed824ecd0714347ceb127e592eb447f62 (patch) | |
tree | 9788a3871592f699572bcd6945dbe4fe961c3f6d | |
parent | 66bbb97a968f7f329ede1bccf5972105351f7f9e (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
-rw-r--r-- | channels/chan_agent.c | 3 |
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); |