Add call to sourceAllSamplesFlushed in flushSamples