Commit 67f584eb authored by Guido van Rossum's avatar Guido van Rossum

Don't sleep if msecs <= 0.

parent 88803a9f
......@@ -22,6 +22,7 @@ def delayfunc(msecs):
# Use millisleep for very short delays or if there are no windows
#
if msecs < 100 or WindowParent.CountWindows() = 0:
if msecs > 0:
time.millisleep(msecs)
return
#
......
......@@ -22,6 +22,7 @@ def delayfunc(msecs):
# Use millisleep for very short delays or if there are no windows
#
if msecs < 100 or WindowParent.CountWindows() = 0:
if msecs > 0:
time.millisleep(msecs)
return
#
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment