Do not signal the doorbell_cv again when a stream is already stopped

This is redundant.
This commit is contained in:
Ka Ho Ng 2020-10-08 00:46:42 +08:00
parent 2a8f2b57de
commit fbdf753fc7

View file

@ -661,7 +661,6 @@ oss_stream_stop(cubeb_stream * s)
pthread_mutex_lock(&s->mtx);
if (s->thread_created && s->running) {
s->running = false;
pthread_cond_signal(&s->doorbell_cv);
pthread_cond_wait(&s->stopped_cv, &s->mtx);
}
pthread_mutex_unlock(&s->mtx);