Use communicate() over wait()
This commit is contained in:
parent
034d029a41
commit
487795fec4
@ -60,7 +60,7 @@ def get_static_download_size(url : str) -> int:
|
|||||||
def ping_static_url(url : str) -> bool:
|
def ping_static_url(url : str) -> bool:
|
||||||
commands = [ '-I', url ]
|
commands = [ '-I', url ]
|
||||||
process = open_curl(commands)
|
process = open_curl(commands)
|
||||||
process.wait()
|
process.communicate()
|
||||||
return process.returncode == 0
|
return process.returncode == 0
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user