summaryrefslogtreecommitdiffstats
path: root/Lib/stdwin/WindowSched.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-04-21 19:31:10 (GMT)
committerGuido van Rossum <guido@python.org>1991-04-21 19:31:10 (GMT)
commit001fa6a20f041c81a83ceec282f88211ec8c2079 (patch)
tree9f12a68879e7560d12095e61b58f1387a9a5d498 /Lib/stdwin/WindowSched.py
parentfb9149c401b9cc9fad2a430f22c209a18a29750e (diff)
downloadcpython-001fa6a20f041c81a83ceec282f88211ec8c2079.zip
cpython-001fa6a20f041c81a83ceec282f88211ec8c2079.tar.gz
cpython-001fa6a20f041c81a83ceec282f88211ec8c2079.tar.bz2
Don't sleep if msecs <= 0.
Diffstat (limited to 'Lib/stdwin/WindowSched.py')
-rwxr-xr-xLib/stdwin/WindowSched.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/stdwin/WindowSched.py b/Lib/stdwin/WindowSched.py
index 19be2b1..8c9151c 100755
--- a/Lib/stdwin/WindowSched.py
+++ b/Lib/stdwin/WindowSched.py
@@ -22,7 +22,8 @@ def delayfunc(msecs):
# Use millisleep for very short delays or if there are no windows
#
if msecs < 100 or WindowParent.CountWindows() = 0:
- time.millisleep(msecs)
+ if msecs > 0:
+ time.millisleep(msecs)
return
#
# Post a timer event on an arbitrary window and wait for it