diff options
Diffstat (limited to 'src/liblzma')
-rw-r--r-- | src/liblzma/common/stream_encoder_mt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/liblzma/common/stream_encoder_mt.c b/src/liblzma/common/stream_encoder_mt.c index 323f04a2..a4b28006 100644 --- a/src/liblzma/common/stream_encoder_mt.c +++ b/src/liblzma/common/stream_encoder_mt.c @@ -295,8 +295,10 @@ worker_start(void *thr_ptr) while (true) { // The thread is already idle so if we are // requested to stop, just set the state. - if (thr->state == THR_STOP) + if (thr->state == THR_STOP) { thr->state = THR_IDLE; + pthread_cond_signal(&thr->cond); + } state = thr->state; if (state != THR_IDLE) |