mirror of
https://github.com/YunoHost/check-http.git
synced 2024-09-03 19:56:42 +02:00
[fix] we are still in python 3.6 in prod
This commit is contained in:
parent
d0256b86b8
commit
d3abbf0f1e
1 changed files with 4 additions and 2 deletions
|
@ -303,7 +303,8 @@ async def check_port_is_open(ip, port):
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
writer.close()
|
writer.close()
|
||||||
await writer.wait_closed()
|
# XXX we are still in python 3.6 in prod :(
|
||||||
|
# await writer.wait_closed()
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@ -382,7 +383,8 @@ async def check_smtp(request):
|
||||||
})
|
})
|
||||||
finally:
|
finally:
|
||||||
writer.close()
|
writer.close()
|
||||||
await writer.wait_closed()
|
# XXX we are still in python 3.6 in prod :(
|
||||||
|
# await writer.wait_closed()
|
||||||
|
|
||||||
return json_response({'status': 'ok', 'helo': helo_domain})
|
return json_response({'status': 'ok', 'helo': helo_domain})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue