Simplfy idle check when deciding whether or not to remove the bootstrap flag file

This commit is contained in:
Greg Neagle
2017-02-02 11:54:57 -08:00
parent 4fb323f4b0
commit 0ef9b61120

View File

@@ -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.