BastianKanaan/GMscripts_MyFreeFarm — pull request #16 by MoeLa (2014-07-09 22:10:41+00:00)
Title: Issue: Bot sometimes hangs in stable

I have five accounts, each with at least one stable. The (first) stable contains the 'super chicken'. Each stable is fed one 'Getreide'.

When the production has finished and the bot starts handling the stable, it usually hangs on clicking the crop to feed. 'Usually' means, that this happens more often than it doesn't and on each account. Manually selecting the crop makes the bot continuing his business immediately. Consecutive farms on the same account are then handled without issues.

I found out that waiting a few milliseconds solves the issue. And that is, what has been changed. I actually don't know exactly why only the first stable hangs... If I had to guess it's because some initialization stuff for opening the stable takes too long (and the click happens when the dom is not ready yet).