Here's two things, one follows from the other:
1. It seems that a bound socket currently being listened to for incoming UDP data via select.select() by a thread I'm running, no longer receives anything if the device I'm running on goes to sleep or is locked (basically if the lock-screen shows up, the socket stops receiving). Has anyone else observed behavior like that in pythonista? If I simply recreate the socket once the device is unlocked, things work fine again until the next time I lock the device or let it lock itself by going to sleep.
- Because of this, assuming this isn't a bug on my end, is there an easy way to detect when my pythonista script returns from "sleep" or whatever it is called when the app resumes from the lock screen? This doesn't happen when the app is backgrounded for a bit...though I haven't seen what happens when I leave it sitting in the background for a long time.
Thanks for any ideas!