From 0ef9b61120fb90efdc4cae0f470f90307db3f500 Mon Sep 17 00:00:00 2001 From: Greg Neagle Date: Thu, 2 Feb 2017 11:54:57 -0800 Subject: [PATCH] Simplfy idle check when deciding whether or not to remove the bootstrap flag file --- code/client/managedsoftwareupdate | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/client/managedsoftwareupdate b/code/client/managedsoftwareupdate index 0f6211d5..9fe8db9e 100755 --- a/code/client/managedsoftwareupdate +++ b/code/client/managedsoftwareupdate @@ -1015,9 +1015,8 @@ def main(): # simply briefly touched the mouse to see progress. time.sleep(15) idleseconds = getIdleSeconds() - if idleseconds > 10: - pass - else: + if idleseconds <= 10: + # we're still not idle. # if the trigger file is present when we exit, we'll # be relaunched by launchd, so we need to remove it # to prevent automatic relaunch.