Azelphur / PokemonGo-CalcyIV-Renamer

Uses adb to send fake tap events to your phone, alongside Calcy IV to automatically rename all your pokemon.
GNU General Public License v3.0
77 stars 32 forks source link

Add a timeout when checking the logcat to avoid endless loops #27

Closed esauvisky closed 5 years ago

esauvisky commented 5 years ago

Sometimes, the calcy intent gets sent a bit too early, which causes the error message "Error: are you on the right screen? [...]". This does not outputs anything to the logcat, which in turn makes the script loop endlessly waiting for some stdout which will never happen, as the intent is never run again.

IMO, there should a timeout that raises CALCY_SCAN_INVALID after, say 10 seconds of listening to the logcat and no matches found. I have no idea how that could be done tho' :sweat_smile:

esauvisky commented 5 years ago

Here is a log showing the behaviour.