fix restart

This commit is contained in:
proddy
2020-07-16 22:36:04 +02:00
parent 0305c207d7
commit 8abf2a7154

View File

@@ -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);
}