From: Kevin P. Fleming Date: Sat, 11 Feb 2006 03:28:59 +0000 (+0000) Subject: doh! X-Git-Tag: 1.4.0-beta1~2681 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a4b31e515ea861301880f89638a6bf9e13a5559;p=thirdparty%2Fasterisk.git doh! git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9472 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index fe68c143f3..1caa3e5caa 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -11447,7 +11447,6 @@ restartsearch: /*! \brief Start the channel monitor thread */ static int restart_monitor(void) { - pthread_attr_t attr; /* If we're supposed to be stopped -- stay stopped */ if (monitor_thread == AST_PTHREADT_STOP) return 0; @@ -11465,7 +11464,7 @@ static int restart_monitor(void) pthread_kill(monitor_thread, SIGURG); } else { /* Start a new monitor */ - if (ast_pthread_create(&monitor_thread, &attr, do_monitor, NULL) < 0) { + if (ast_pthread_create(&monitor_thread, NULL, do_monitor, NULL) < 0) { ast_mutex_unlock(&monlock); ast_log(LOG_ERROR, "Unable to start monitor thread.\n"); return -1;