Don't rely on python internal implementation.
Set a safe timeout value as we cannot assume, that the current implementation of busy-waiting won't be changed in the future.
This commit is contained in:
parent
6c87df3364
commit
8d4eac5ea1
@ -122,7 +122,7 @@ try:
|
|||||||
# the number is irrelevant -- the only thing that matters, is that it is
|
# the number is irrelevant -- the only thing that matters, is that it is
|
||||||
# larger than 0.05
|
# larger than 0.05
|
||||||
# this is due to python implementing its own busy-waiting logic
|
# this is due to python implementing its own busy-waiting logic
|
||||||
server_exited.wait(10.0)
|
server_exited.wait(5.0)
|
||||||
if server_exited.is_set():
|
if server_exited.is_set():
|
||||||
break
|
break
|
||||||
finally:
|
finally:
|
||||||
|
Loading…
Reference in New Issue
Block a user