While the ones flying around seem annoying, the real damage is being done out of your sight. Each female can lay up to 200-300 eggs in damp soil. These will hatch in three days and the larvae begin feeding on root hairs, organic material and fungi. Their numbers will increase quickly and exponentially cause real root damage if not cut off at the pass. As suggested above, 24/7 air circulation to keep the medium on the surface dry and make it difficult to land and lay. Mosquito bit drench, before, and during grow. When I premoisten my 5gal airpots before planting, I do so with a mosquito bit drench to eliminate and prevent fungus gnat larvae.