Sometimes, when you minimise the game, you can't stop attacking. This time, minimising the game again stopped it, last time it didn't.