mixed up == with !=, we only want to set the idle timeout if the err is is not nil creating the connection