From 3da0f08fcb370d298cf0313540d76344c308ff56 Mon Sep 17 00:00:00 2001 From: alexcoder04 Date: Sun, 1 May 2022 12:15:29 +0200 Subject: [PATCH] arch-update: sleep 1 sec before checking When waking up from suspend, there is sometimes a delay connecting to the network, so arch-update gives an error --- bumblebee_status/modules/contrib/arch-update.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bumblebee_status/modules/contrib/arch-update.py b/bumblebee_status/modules/contrib/arch-update.py index ed9ae58..d8da8fb 100644 --- a/bumblebee_status/modules/contrib/arch-update.py +++ b/bumblebee_status/modules/contrib/arch-update.py @@ -7,6 +7,7 @@ contributed by `lucassouto `_ - many thanks! """ import logging +from time import sleep import core.module import core.widget @@ -35,6 +36,7 @@ class Module(core.module.Module): def update(self): self.__error = False + sleep(1) code, result = util.cli.execute( "checkupdates", ignore_errors=True, return_exitcode=True )