diff --git a/wifi_manager.py b/wifi_manager.py index c2a8938..19f38b7 100644 --- a/wifi_manager.py +++ b/wifi_manager.py @@ -128,7 +128,8 @@ def check_wifi_connection(): sudo systemctl restart NetworkManager ''' network_error_light() - subprocess.Popen('sudo reboot', shell=True) + subprocess.Popen('sudo systemctl restart NetworkManager', shell=True) + time.sleep(1) return False, None def scan_wifi():