File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 34
34
// ----------------------------------------
35
35
36
36
int wifiConnectionAttempts; // Count the number of connection attempts between restarts
37
- bool mdnsIsRunning = false ; // Ending mdns when it was not yet started causes it to fail to start
38
37
39
38
#ifdef COMPILE_WIFI
40
39
@@ -432,11 +431,8 @@ void wifiStop()
432
431
stopWebServer ();
433
432
434
433
// Stop the multicast domain name server
435
- if (mdnsIsRunning == true && settings.mdnsEnable == true )
436
- {
434
+ if (settings.mdnsEnable == true )
437
435
MDNS.end ();
438
- mdnsIsRunning = false ;
439
- }
440
436
441
437
// Stop the DNS server if we were using the captive portal
442
438
if (WiFi.getMode () == WIFI_AP && settings.enableCaptivePortal )
@@ -554,10 +550,7 @@ bool wifiConnect(unsigned long timeout)
554
550
if (MDNS.begin (" rtk" ) == false ) // This should make the device findable from 'rtk.local' in a browser
555
551
systemPrintln (" Error setting up MDNS responder!" );
556
552
else
557
- {
558
553
MDNS.addService (" http" , " tcp" , settings.httpPort ); // Add service to MDNS
559
- mdnsIsRunning = true ;
560
- }
561
554
}
562
555
}
563
556
You can’t perform that action at this time.
0 commit comments