Fixed thread leak when next streams are reset.
This commit is contained in:
parent
38743b7dbf
commit
b5b5b45eda
1 changed files with 3 additions and 0 deletions
|
@ -170,6 +170,9 @@
|
||||||
- (void)resetNextStreams
|
- (void)resetNextStreams
|
||||||
{
|
{
|
||||||
@synchronized (chainQueue) {
|
@synchronized (chainQueue) {
|
||||||
|
for (id anObject in chainQueue) {
|
||||||
|
[anObject setShouldContinue:NO];
|
||||||
|
}
|
||||||
[chainQueue removeAllObjects];
|
[chainQueue removeAllObjects];
|
||||||
|
|
||||||
if (endOfInputReached) {
|
if (endOfInputReached) {
|
||||||
|
|
Loading…
Reference in a new issue