tidy up lambda's

This commit is contained in:
Proddy
2024-02-13 20:19:58 +01:00
parent 92a80c3aaf
commit ce3c3e0b3e
17 changed files with 37 additions and 36 deletions

View File

@@ -84,7 +84,7 @@ void UploadFileService::handleUpload(AsyncWebServerRequest * request, const Stri
Update.setMD5(_md5.data());
_md5.front() = '\0';
}
request->onDisconnect([this]() { handleEarlyDisconnect(); }); // success, let's make sure we end the update if the client hangs up
request->onDisconnect([this] { handleEarlyDisconnect(); }); // success, let's make sure we end the update if the client hangs up
} else {
handleError(request, 507); // failed to begin, send an error response Insufficient Storage
return;