(shutdwn): Failed to set play_wrlock_wanted. This let player threads
block on output, which could delay shutdown indefinitely.
This commit is contained in:
parent
a9afd1efef
commit
be8e1d068e
1 changed files with 1 additions and 0 deletions
|
@ -375,6 +375,7 @@ shutdwn(int sig)
|
||||||
|
|
||||||
logerror("Shutdown commencing (cleaning up threads.)");
|
logerror("Shutdown commencing (cleaning up threads.)");
|
||||||
|
|
||||||
|
play_wrlock_wanted = 1;
|
||||||
for (p = player_next(0); p != 0; p = player_next(p)) {
|
for (p = player_next(0); p != 0; p = player_next(p)) {
|
||||||
if (p->state != PS_PLAYING)
|
if (p->state != PS_PLAYING)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue