mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-16 06:18:19 +00:00
Catch more error to avoid dead lock at project close
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user