diff options
-rwxr-xr-x | channels/chan_zap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 969a35c6c..1ed245035 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -6178,6 +6178,10 @@ static void *pri_dchannel(void *vpri) int i; pthread_t threadid; pthread_attr_t attr; + + pthread_attr_init(&attr); + pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); + gettimeofday(&lastidle, NULL); if (!ast_strlen_zero(pri->idledial) && !ast_strlen_zero(pri->idleext)) { /* Need to do idle dialing, check to be sure though */ |