mirror of
https://github.com/python/cpython.git
synced 2025-08-23 02:04:56 +00:00
Two places where _time() should be used said time.time(), which
doesn't work of course.
This commit is contained in:
parent
6884af706b
commit
b39e461b89
1 changed files with 2 additions and 2 deletions
|
@ -416,9 +416,9 @@ class Thread(_Verbose):
|
|||
if __debug__:
|
||||
self._note("%s.join(): thread stopped", self)
|
||||
else:
|
||||
deadline = time.time() + timeout
|
||||
deadline = _time() + timeout
|
||||
while not self.__stopped:
|
||||
delay = deadline - time.time()
|
||||
delay = deadline - _time()
|
||||
if delay <= 0:
|
||||
if __debug__:
|
||||
self._note("%s.join(): timed out", self)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue