diff options
Diffstat (limited to 'Modules/_threadmodule.c')
-rw-r--r-- | Modules/_threadmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_threadmodule.c b/Modules/_threadmodule.c index 0907aa0..323447f 100644 --- a/Modules/_threadmodule.c +++ b/Modules/_threadmodule.c @@ -84,7 +84,7 @@ acquire_timed(PyThread_type_lock lock, _PyTime_t timeout) /* Check for negative values, since those mean block forever. */ - if (timeout <= 0) { + if (timeout < 0) { r = PY_LOCK_FAILURE; } } |