mirror of
https://github.com/mozilla/cubeb
synced 2024-11-21 14:29:11 -07:00
Do not signal the doorbell_cv again when a stream is already stopped
This is redundant.
This commit is contained in:
parent
2a8f2b57de
commit
fbdf753fc7
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue