summaryrefslogtreecommitdiffstats
path: root/chan_lcr.c
diff options
context:
space:
mode:
Diffstat (limited to 'chan_lcr.c')
-rw-r--r--chan_lcr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/chan_lcr.c b/chan_lcr.c
index 579d6e7..0a38304 100644
--- a/chan_lcr.c
+++ b/chan_lcr.c
@@ -754,6 +754,8 @@ static void *chan_thread(void *arg)
{
int work;
+ pthread_mutex_lock(&chan_lock);
+
while(!quit)
{
work = 0;
@@ -777,6 +779,9 @@ static void *chan_thread(void *arg)
pthread_mutex_lock(&chan_lock);
}
}
+
+ pthread_mutex_unlock(&chan_lock);
+
return NULL;
}