Skip to content

Commit

Permalink
Don't delete handlers when they're removed (Aircoookie#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
oxan authored Nov 11, 2021
1 parent fc585ca commit ac0ee8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WebServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ bool ON_AP_FILTER(AsyncWebServerRequest *request) {

AsyncWebServer::AsyncWebServer(uint16_t port)
: _server(port)
, _rewrites(LinkedList<AsyncWebRewrite*>([](AsyncWebRewrite* r){ delete r; }))
, _handlers(LinkedList<AsyncWebHandler*>([](AsyncWebHandler* h){ delete h; }))
, _rewrites(LinkedList<AsyncWebRewrite*>(nullptr))
, _handlers(LinkedList<AsyncWebHandler*>(nullptr))
{
_catchAllHandler = new AsyncCallbackWebHandler();
if(_catchAllHandler == NULL)
Expand Down

0 comments on commit ac0ee8d

Please sign in to comment.