summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/timemodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index 204626e..0c44d12 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -1433,7 +1433,7 @@ floatsleep(double secs)
ul_millis = (unsigned long)millisecs;
if (ul_millis == 0 || !_PyOS_IsMainThread()) {
Py_BEGIN_ALLOW_THREADS
- Sleep(0);
+ Sleep(ul_millis);
Py_END_ALLOW_THREADS
break;
}