What is wrong with this fire repeater?

Holding down the fire button keeps the firing going. I can also spam the button, pause, spam with no problem.
The problem appears when i double click after the repeat delay is over and fires.
It’s a little bit tricky to reproduce, but my perfectionism keeps me away from saying “it’s ok”.

192694-2.png

The red arrow from the delay fires right before i press fire.
This happens before the variable is set.

Any hints, help or ideas is greatly appriciated.
Thanks, Carl