diff --git a/Audio/Chain/ChunkList.m b/Audio/Chain/ChunkList.m index ce9f91217..63288817e 100644 --- a/Audio/Chain/ChunkList.m +++ b/Audio/Chain/ChunkList.m @@ -74,8 +74,10 @@ @synchronized(chunkList) { inRemover = YES; - if(![chunkList count]) + if(![chunkList count]) { + inRemover = NO; return [[AudioChunk alloc] init]; + } AudioChunk *chunk = [chunkList objectAtIndex:0]; if([chunk frameCount] <= maxFrameCount) { [chunkList removeObjectAtIndex:0];