new try . waiting for byteQueue->empty()