Cleanup memory leak from webserver onNetworkConnected()
paclema opened this issue · comments
It seems that there is a memory leak since the reconnection process is not that clean for the webserver client.
https://github.com/paclema/WebConfigServer/blob/main/src/WebConfigServer.h#L328
It should be introduced a stop and clean (only once, if the webserver client still runs) on the onNetworkDisconnected() callback.
https://github.com/paclema/WebConfigServer/blob/main/src/WebConfigServer.h#L346
Presumably, I could just configure once the webserver before starting the wifi connection as this example shows: NAPTCaptivePortal.ino