I find will power works, ignore them and they go away. :) Or maybe I just don't taste that good.
I was training two army guys on Mountain Bikes on a still day in the Brecons, they snapped a chain and took an age to repair it, all the midge left me alone but feasted on the two army guys, never...