mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-02 02:18:31 +00:00
Make sure we initialize attributes properly on thread (bug #1563)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2955 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -6178,6 +6178,10 @@ static void *pri_dchannel(void *vpri)
|
|||||||
int i;
|
int i;
|
||||||
pthread_t threadid;
|
pthread_t threadid;
|
||||||
pthread_attr_t attr;
|
pthread_attr_t attr;
|
||||||
|
|
||||||
|
pthread_attr_init(&attr);
|
||||||
|
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
|
||||||
|
|
||||||
gettimeofday(&lastidle, NULL);
|
gettimeofday(&lastidle, NULL);
|
||||||
if (!ast_strlen_zero(pri->idledial) && !ast_strlen_zero(pri->idleext)) {
|
if (!ast_strlen_zero(pri->idledial) && !ast_strlen_zero(pri->idleext)) {
|
||||||
/* Need to do idle dialing, check to be sure though */
|
/* Need to do idle dialing, check to be sure though */
|
||||||
|
Reference in New Issue
Block a user