Add little delay to make sure the client gets the success message

pull/12/head
TilCreator 2018-05-28 20:52:21 +02:00
rodzic 9d3094862a
commit 4ad3bec1ea
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -214,6 +214,9 @@ def handle_configure(client, request):
profiles = {}
profiles[ssid] = password
write_profiles(profiles)
time.sleep(5)
return True
else:
response = """\
@ -290,4 +293,3 @@ def start(port=80):
handle_not_found(client, url)
finally:
client.close()