[asterisk-commits] seanbright: branch 1.6.0 r143735 - /branches/1.6.0/channels/chan_agent.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Sep 19 19:38:52 CDT 2008


Author: seanbright
Date: Fri Sep 19 19:38:51 2008
New Revision: 143735

URL: http://svn.digium.com/view/asterisk?view=rev&rev=143735
Log:
ast_event_unsubscribe in 1.6.0 returns void, not NULL.

Pointed out by Stefan Gofferje on the asterisk-users mailing list.

Modified:
    branches/1.6.0/channels/chan_agent.c

Modified: branches/1.6.0/channels/chan_agent.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/channels/chan_agent.c?view=diff&rev=143735&r1=143734&r2=143735
==============================================================================
--- branches/1.6.0/channels/chan_agent.c (original)
+++ branches/1.6.0/channels/chan_agent.c Fri Sep 19 19:38:51 2008
@@ -2493,7 +2493,8 @@
 	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);	




More information about the asterisk-commits mailing list