aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/fuse_loop_mt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fuse_loop_mt.c b/lib/fuse_loop_mt.c
index 6002e19..72c74a8 100644
--- a/lib/fuse_loop_mt.c
+++ b/lib/fuse_loop_mt.c
@@ -179,7 +179,7 @@ static void *fuse_do_work(void *data)
* is indeed a good reason to destruct threads it should be done
* delayed, a moving average might be useful for that.
*/
- if (mt->max_idle != -1 && mt->numavail > mt->max_idle) {
+ if (mt->max_idle != -1 && mt->numavail > mt->max_idle && mt->numworker > 1) {
if (mt->exit) {
pthread_mutex_unlock(&mt->lock);
return NULL;