--- linuxsampler/trunk/src/engines/gig/DiskThread.cpp 2005/01/01 03:06:06 332 +++ linuxsampler/trunk/src/engines/gig/DiskThread.cpp 2005/01/01 08:18:07 333 @@ -235,7 +235,7 @@ } // if there are deletion commands, delete those streams - while (Stream::UnusedStreams < Streams && DeletionQueue->read_space() > 0) { + while (Stream::UnusedStreams < Stream::TotalStreams && DeletionQueue->read_space() > 0) { delete_command_t command; DeletionQueue->pop(&command); DeleteStream(command);