mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-28 08:29:58 -07:00
On firmware M7350(EU)_V9_9.0.2 Build 241021 (but not sooner), entryId=2 was being sent before entryId=1. entryId=2 is invalid if entryId=1 does not exist yet. The reason it works is due to both requests firing simultaneously, so sometimes entryId=1 is indeed being registered first. We may also be hitting random race conditions on the backend, not 100% sure. Try to alleviate them by sleeping 1 second between started requests and waiting until the DOM is ready. Also, on sluggish devices, it can happen that nc is not ready within 100ms. Fixing that with exponential backoff.