From c17e00204fb478d9535a2c194d35a0d92ce7609a Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 2 May 2016 16:55:05 +0200 Subject: [PATCH] Auto reconnect to docker if connection was closed Fix #507 --- gns3server/modules/docker/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/modules/docker/__init__.py b/gns3server/modules/docker/__init__.py index 22f74b61..3442d3fa 100644 --- a/gns3server/modules/docker/__init__.py +++ b/gns3server/modules/docker/__init__.py @@ -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