mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
vcs: use a timeout of 20 seconds
This commit is contained in:
parent
38c1a4ce9d
commit
374f7c3d42
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ async def get_version(name, conf, **kwargs):
|
|||
stderr=asyncio.subprocess.PIPE,
|
||||
)
|
||||
|
||||
output, error = await p.communicate()
|
||||
output, error = await asyncio.wait_for(p.communicate(), 20)
|
||||
output = output.strip().decode('latin1')
|
||||
error = error.strip().decode('latin1')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue