Currently GeodroidServer pings the server every 4 seconds to detect if it's running or not.
Instead of polling the service endpoint, another approach would be to have the nano server use a callback to notify when it's socket server is running. A second callback for detecting shutdown could be called when the ServerSocket thread loop exits.
Not that there's any opposition to this, but just verified 3m12s of CPU time (2% battery) from the past 24 hours of almost all idleness. (Since I was curious)
Currently GeodroidServer pings the server every 4 seconds to detect if it's running or not.
Instead of polling the service endpoint, another approach would be to have the nano server use a callback to notify when it's socket server is running. A second callback for detecting shutdown could be called when the ServerSocket thread loop exits.