1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-13 20:08:55 +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
connection = yield from aiohttp.ws_connect(url,
connector=self.connector(),
origin="http://docker",
autoping=True)
connection = yield from self._session.ws_connect(url,
connector=self.connector(),
origin="http://docker",
autoping=True)
return connection
@locked_coroutine