If there are any major changes, I can now edit MOTD!

Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-09-20 11:04:47 +02:00
parent d4dc77fc50
commit f82a3e8d2b

View File

@ -44,10 +44,10 @@ class InternetConnectionPlugin(plugins.Plugin):
# Connect to the host - tells us if the host is actually reachable # Connect to the host - tells us if the host is actually reachable
s = socket.create_connection((host, 80), 2) s = socket.create_connection((host, 80), 2)
s.close() s.close()
ui.set('connection_status', '') ui.set('connection_status', 'C')
except: except:
# if the command failed, it means there is no active Internet connection # if the command failed, it means there is no active Internet connection
ui.set('connection_status', '') ui.set('connection_status', 'D')
def on_unload(self, ui): def on_unload(self, ui):
with ui._lock: with ui._lock: