wait for compression to finish