• @mikael said:

    from functools import partial

    Didn't know this partial. I often have searched a way with ui.delay calling a function with arguments, without using globals. Thanks to remember me that I don't know a lot about Python 😢

  • Thanks @mikael and @JonB! I'll take a look at those options...using the notification center to register for the lock-related notifications seems like a decent solution.

    Has anyone noticed anything of this nature? I haven't had a chance to try making some simple tests to see if it is "normal" behavior for a socket to become disconnected when the device is locked/sleeps.

Internal error.

Oops! Looks like something went wrong!