while(channel.poll() != null);