From 8abf2a71549f2babbb0007c946699434dcc1a83b Mon Sep 17 00:00:00 2001 From: proddy Date: Thu, 16 Jul 2020 22:36:04 +0200 Subject: [PATCH] fix restart --- lib/framework/RestartService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/framework/RestartService.cpp b/lib/framework/RestartService.cpp index cc5164064..9036e40a7 100644 --- a/lib/framework/RestartService.cpp +++ b/lib/framework/RestartService.cpp @@ -8,6 +8,6 @@ RestartService::RestartService(AsyncWebServer* server, SecurityManager* security } void RestartService::restart(AsyncWebServerRequest* request) { - request->onDisconnect([]() { RestartService::restartNow(); }); + request->onDisconnect(RestartService::restartNow); request->send(200); }