force to flush the receive buffer data when download finished