 			server->send(204, "text/plain", "No WLAN found");
 			log_dbg("No WLAN found\r\n");
 		}
+		scanning = false;
 	});
 	server->on("/ip", HTTP_GET, []() {
 		String ipstr = String();

			LOG_SERIAL.println(".local to get started");
#endif
#ifdef NEURITE_ENABLE_DNSPORTAL
			dnsServer.start(53, "*", apIP);
			log_dbg("DNS server started\n\r");
#endif
			server_config(nd);

		json = String();
	});
	server->on("/wifiscan", HTTP_GET, []() {
		static bool scanning = false;
		if (scanning) {
			server->send(202, "text/plain", "");
			log_dbg("busy scanning, return\r\n");
			return;
		}
		scanning = true;
		log_dbg("scan start\r\n");
		int n = WiFi.scanNetworks();
		log_dbg("scan done\r\n");
