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: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@143735 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Sean Bright 17 years ago
parent f6376d0130
commit dc216d98f0

@ -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);

Loading…
Cancel
Save