1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-16 05:18:56 +00:00

Catch more websocket errors

This commit is contained in:
Julien Duponchelle 2016-09-05 17:01:39 +02:00
parent 6e7f6a94ec
commit 75d5f6507d
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -376,7 +376,7 @@ class Compute:
""" """
try: try:
self._ws = yield from self._session().ws_connect(self._getUrl("/notifications/ws"), auth=self._auth) self._ws = yield from self._session().ws_connect(self._getUrl("/notifications/ws"), auth=self._auth)
except aiohttp.errors.WSServerHandshakeError: except (aiohttp.errors.WSServerHandshakeError, aiohttp.errors.ClientResponseError):
self._ws = None self._ws = None
while self._ws is not None: while self._ws is not None:
try: try: