aboutsummaryrefslogtreecommitdiffstats
path: root/cdr/cdr_adaptive_odbc.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-06-20 14:09:40 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-06-20 14:09:40 +0000
commit0699bad154c10539e31c46eeee1164990c955cbc (patch)
tree1dc9222a6ebec22b042d4735db647f6f2e2c8962 /cdr/cdr_adaptive_odbc.c
parente24fc1a3de93bd0c77d2c3de48d9fc3550a1da50 (diff)
Remove unnecessary usleep() from a couple of module unload callbacks.
In passing, also tweak cdr_unregister() to hold the list lock a bit less time. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@202109 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr/cdr_adaptive_odbc.c')
-rw-r--r--cdr/cdr_adaptive_odbc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/cdr/cdr_adaptive_odbc.c b/cdr/cdr_adaptive_odbc.c
index 205c2075d..1d3199114 100644
--- a/cdr/cdr_adaptive_odbc.c
+++ b/cdr/cdr_adaptive_odbc.c
@@ -663,7 +663,6 @@ early_release:
static int unload_module(void)
{
ast_cdr_unregister(name);
- usleep(1);
if (AST_RWLIST_WRLOCK(&odbc_tables)) {
ast_cdr_register(name, ast_module_info->description, odbc_log);
ast_log(LOG_ERROR, "Unable to lock column list. Unload failed.\n");