I tried to flash stock recovery to my HTC One M7 phone (rooted, HAD TWRP recovery, s-on).
After my attempt, now phone restarts, and is stuck on the black screen with red triangle and exclamation mark in it. By pressing and holding power button, I restarted the phone. It restarted normally, and booted just fine.
Now when I restart, the whole thing repeats. First it is stuck on the triangle screen then I restart it again and it boots up normally.
The triangle indicates missing recovery right, so how does it start after second attempt?
How can I fix it?