It doesn't matter whether you yelled or not. If he continued to take pulls he likely wouldn't have lasted. If a slower rider gets stuck on the front or someone rides slower than the normal pace I would just go around them. You don't need to say anything but it's not a big deal either way.