This commit is contained in:
IrvingGao committed 2024-05-31 12:46:49 +08:00
1 parent 23ba0136e6
commit 45191faaba
1 file changed
+2 -1
+2 -1
View File
@@ -128,7 +128,8 @@ def check_wifi_connection():
sudo systemctl restart NetworkManager
'''
network_error_light()
subprocess.Popen('sudo systemctl restart NetworkManager', shell=True)
# subprocess.Popen('sudo systemctl restart NetworkManager', shell=True)
subprocess.run(['sudo', 'systemctl', 'restart', 'NetworkManager'], check=True)
time.sleep(5)
return False, None