Remove unnecessary usleep() from a couple of module unload callbacks.
[asterisk/asterisk.git] / cdr / cdr_pgsql.c
index 5e8e486..75fb0f8 100644 (file)
@@ -331,10 +331,9 @@ static int pgsql_log(struct ast_cdr *cdr)
 static int unload_module(void)
 {
        struct columns *current;
+
        ast_cdr_unregister(name);
 
-       /* Give all threads time to finish */
-       usleep(1);
        PQfinish(conn);
 
        if (pghostname)