aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/func_realtime.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-16 13:35:20 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-16 13:35:20 +0000
commit9e24ed5ccff762fa9d412d1a1321df2de1b26423 (patch)
tree0ab20c37aa720b15f7617941caf77185337b181d /funcs/func_realtime.c
parent2bf80313d6f8f29e2c9aa74c562e1d1e6c37e6a1 (diff)
It is no longer required for each module that deals with a channel to call ast_module_user_hangup_all in it's unload function. The loader will automatically perform this action for it.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75183 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs/func_realtime.c')
-rw-r--r--funcs/func_realtime.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/funcs/func_realtime.c b/funcs/func_realtime.c
index 47d51bf64..7ffe8122c 100644
--- a/funcs/func_realtime.c
+++ b/funcs/func_realtime.c
@@ -148,18 +148,12 @@ struct ast_custom_function realtime_function = {
static int unload_module(void)
{
- int res = ast_custom_function_unregister(&realtime_function);
-
- ast_module_user_hangup_all();
-
- return res;
+ return ast_custom_function_unregister(&realtime_function);
}
static int load_module(void)
{
- int res = ast_custom_function_register(&realtime_function);
-
- return res;
+ return ast_custom_function_register(&realtime_function);
}
AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Read/Write values from a RealTime repository");