aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-15 23:41:54 +0000
committerjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-15 23:41:54 +0000
commit2b58aaef5958409177a79882f435bcdc3a257792 (patch)
tree8e7a24e4586bab379e76df32a82a375e158ed8e8
parent5ee6af1a0ccbb79cb09ee2688c30d36f63bb3ef3 (diff)
add forgotten locks around ss_thread_count in ss_thread for dahdi restart
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@138309 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_dahdi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 1dc6d06e8..d1fe75d88 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -5546,7 +5546,9 @@ static void *ss_thread(void *data)
int res;
int index;
+ ast_mutex_lock(&ss_thread_lock);
ss_thread_count++;
+ ast_mutex_unlock(&ss_thread_lock);
/* in the bizarre case where the channel has become a zombie before we
even get started here, abort safely
*/