Fix #807 TCP API on ESP32. thanks @jfirwin your hint made the problem easy to find!

This commit is contained in:
Kevin Hester
2021-05-24 09:42:21 +08:00
parent 069b0d38be
commit be410a3913
2 changed files with 4 additions and 1 deletions

View File

@@ -22,6 +22,9 @@ class WiFiServerAPI : public StreamAPI
protected:
/// We override this method to prevent publishing EVENT_SERIAL_CONNECTED/DISCONNECTED for wifi links (we want the board to stay in the POWERED state to prevent disabling wifi)
virtual void onConnectionChanged(bool connected) {}
virtual int32_t runOnce(); // Check for dropped client connections
/// Check the current underlying physical link to see if the client is currently connected