Fixed thread leak when next streams are reset.

This commit is contained in:
vspader 2009-02-28 19:14:52 -08:00
parent 38743b7dbf
commit b5b5b45eda

View file

@ -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) {