Skip to content

Cleanup memory leak from webserver onNetworkConnected() #3

Description

@paclema

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions