make sure we release streams lock!!
This commit is contained in:
parent
4d132d278c
commit
c1b977b901
@ -616,9 +616,11 @@ static Int cont_stream_property(USES_REGS1) { /* current_stream */
|
|||||||
} else {
|
} else {
|
||||||
while (GLOBAL_Stream[i].status & Free_Stream_f) {
|
while (GLOBAL_Stream[i].status & Free_Stream_f) {
|
||||||
++i;
|
++i;
|
||||||
if (i == MaxStreams)
|
if (i == MaxStreams) {
|
||||||
|
UNLOCK(GLOBAL_StreamDescLock);
|
||||||
cut_fail();
|
cut_fail();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
LOCK(GLOBAL_Stream[i].streamlock);
|
LOCK(GLOBAL_Stream[i].streamlock);
|
||||||
UNLOCK(GLOBAL_StreamDescLock);
|
UNLOCK(GLOBAL_StreamDescLock);
|
||||||
rc = do_stream_property(i, args PASS_REGS);
|
rc = do_stream_property(i, args PASS_REGS);
|
||||||
|
Reference in New Issue
Block a user