mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-03 12:25:35 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@202109 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user