1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

Fix for websocket usage with aiohttp 2.0

Fix #1050
This commit is contained in:
Julien Duponchelle 2017-06-01 18:39:55 +02:00
parent 823288dd0b
commit 7dfb634376
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -166,10 +166,10 @@ class Docker(BaseManager):
""" """
url = "http://docker/v" + DOCKER_MINIMUM_API_VERSION + "/" + path url = "http://docker/v" + DOCKER_MINIMUM_API_VERSION + "/" + path
connection = yield from aiohttp.ws_connect(url, connection = yield from self._session.ws_connect(url,
connector=self.connector(), connector=self.connector(),
origin="http://docker", origin="http://docker",
autoping=True) autoping=True)
return connection return connection
@locked_coroutine @locked_coroutine