It takes a few minutes for a fruit fly to find a suitable spot on the mango and inject her eggs under the skin of the fruit. But even in that short time, the weaver ants will have either chased her away or have captured her. Their scent also helps. When other insects detect the scent of weaver ants, they prefer to stay away.