mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-20 17:52:35 +00:00
Refactor OSThread consumers to use disable()
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user