Yes, it may sound weird, but the flag resume is a kind of "I must resume at some point" and when I found the point where I will resume, then I set off the flag. That's why I check if the flag is off to send the "Here I resume" message.