From 196041a6fc3e731f45e894d6276f5d7dc77a99c2 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Mon, 29 Sep 2008 17:43:00 +0100 Subject: [PATCH] Increase delay before checking for updates If NetworkManager says we're not connected yet, wait 2 minutes before trying anyway (not 20 seconds). --- zeroinstall/injector/background.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zeroinstall/injector/background.py b/zeroinstall/injector/background.py index 893ab09..89ce05f 100644 --- a/zeroinstall/injector/background.py +++ b/zeroinstall/injector/background.py @@ -155,7 +155,7 @@ def _check_for_updates(policy, verbose): if network_state != _NetworkState.NM_STATE_CONNECTED: info("Not yet connected to network (status = %d). Sleeping for a bit...", network_state) import time - time.sleep(20) + time.sleep(120) if network_state in (_NetworkState.NM_STATE_DISCONNECTED, _NetworkState.NM_STATE_ASLEEP): info("Still not connected to network. Giving up.") sys.exit(1) -- 2.11.4.GIT