Catch more error to avoid dead lock at project close

This commit is contained in:
Julien Duponchelle committed 2016-08-29 18:59:13 +02:00
1 parent 96f3cb0445
commit 919355abd8
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -347,7 +347,7 @@ class Compute:
if not self._connected and not self._closed:
try:
response = yield from self._run_http_query("GET", "/capabilities")
except (aiohttp.errors.ClientOSError, aiohttp.errors.ClientRequestError):
except (aiohttp.errors.ClientOSError, aiohttp.errors.ClientRequestError, aiohttp.ClientResponseError):
# Try to reconnect after 2 seconds if server unavailable
asyncio.get_event_loop().call_later(2, lambda: asyncio.async(self.connect()))
return