Refactor OSThread consumers to use disable()

This commit is contained in:
Ben Meadors
2022-12-29 16:26:25 -06:00
parent a8f93d5f47
commit 38a1315599
9 changed files with 14 additions and 25 deletions

View File

@@ -166,17 +166,15 @@ void createSSLCert()
WebServerThread *webServerThread;
WebServerThread::WebServerThread() : concurrency::OSThread("WebServerThread") {
if(!config.network.wifi_enabled) {
setInterval(INT32_MAX);
enabled = false;
if (!config.network.wifi_enabled) {
disable();
}
}
int32_t WebServerThread::runOnce()
{
if(!config.network.wifi_enabled) {
setInterval(INT32_MAX);
enabled = false;
if (!config.network.wifi_enabled) {
disable();
}
handleWebResponse();