Do not allow res_timing_dahdi to be unloaded. We can re-enable this once we
authorRussell Bryant <russell@russellbryant.com>
Fri, 13 Jun 2008 12:53:08 +0000 (12:53 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 13 Jun 2008 12:53:08 +0000 (12:53 +0000)
add automatic use count handling for timing modules.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@122526 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_timing_dahdi.c

index 16b64b2..bc80766 100644 (file)
@@ -180,9 +180,11 @@ static int load_module(void)
 
 static int unload_module(void)
 {
-       ast_uninstall_timing_functions(timing_funcs_handle);
+       /* ast_uninstall_timing_functions(timing_funcs_handle); */
 
-       return 0;
+       /* This module can not currently be unloaded.  No use count handling is being done. */
+
+       return -1;
 }
 
 AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "DAHDI Timing Interface");