VirtualBox

Changeset 21752 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jul 21, 2009 1:44:56 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
50333
Message:

Python shell: make sleep command interruptible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxShell/vboxshell.py

    r21736 r21752  
    808808        return 0
    809809
    810     time.sleep(float(args[1]))
     810    try:
     811        time.sleep(float(args[1]))
     812    except:
     813        # to allow sleep interrupt
     814        pass
    811815    return 0
    812816
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette