mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-10 01:39:54 +03:00
fix restart
This commit is contained in:
@@ -8,6 +8,6 @@ RestartService::RestartService(AsyncWebServer* server, SecurityManager* security
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RestartService::restart(AsyncWebServerRequest* request) {
|
void RestartService::restart(AsyncWebServerRequest* request) {
|
||||||
request->onDisconnect([]() { RestartService::restartNow(); });
|
request->onDisconnect(RestartService::restartNow);
|
||||||
request->send(200);
|
request->send(200);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user