mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user