private int getTODuration(int count, Channel channel) {
        if (channel.getEnableWarnings()) {
            if (count > 1) {
                return channel.getTimeoutDuration();
            } else {
                return 10;
            }
        } else {
            return channel.getTimeoutDuration();
        }
    }