pygrub: Revert 19322:3118041f2259, as it breaks timeout=0 behaviour

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
Keir Fraser committed 2009-08-20 08:23:33 +01:00
1 parent 361c982639
commit be7c3e95bc
1 file changed
+1 -5
+1 -5
View File
@@ -443,11 +443,7 @@ class Grub:
# Timed out waiting for a keypress
if mytime != -1:
mytime += 1
# curses.timeout() does not work properly on Solaris
# So we may come here even after a key has been pressed.
# Check both timeout and mytime to avoid exiting
# when we shouldn't.
if timeout != -1 and mytime >= int(timeout):
if mytime >= int(timeout):
self.isdone = True
break
else:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.