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

Auto reconnect to docker if connection was closed

Fix #507
This commit is contained in:
Julien Duponchelle 2016-05-02 16:55:05 +02:00
parent 936faaba5a
commit c17e00204f
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -49,7 +49,7 @@ class Docker(BaseManager):
@asyncio.coroutine
def connector(self):
if not self._connected:
if not self._connected or self._connector.closed:
try:
self._connector = aiohttp.connector.UnixConnector(self._server_url)
self._connected = True