Use communicate() over wait()

This commit is contained in:
henryruhs 2024-12-21 22:38:17 +01:00
parent 034d029a41
commit 487795fec4

View File

@ -60,7 +60,7 @@ def get_static_download_size(url : str) -> int:
def ping_static_url(url : str) -> bool:
commands = [ '-I', url ]
process = open_curl(commands)
process.wait()
process.communicate()
return process.returncode == 0