mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Fix random failure related to ports
This commit is contained in:
1 parent
8d9da999e6
commit
f3e07d5ad9
4 files changed
+6
-23
No files matched your search
@@ -45,24 +45,6 @@ class PortManager:
|
||||
else:
|
||||
self._console_host = host
|
||||
|
||||
@classmethod
|
||||
def instance(cls):
|
||||
"""
|
||||
Singleton to return only one instance of BaseManager.
|
||||
|
||||
:returns: instance of Manager
|
||||
"""
|
||||
|
||||
if not hasattr(cls, "_instance") or cls._instance is None:
|
||||
cls._instance = cls()
|
||||
return cls._instance
|
||||
|
||||
@classmethod
|
||||
@asyncio.coroutine # FIXME: why coroutine?
|
||||
def destroy(cls):
|
||||
|
||||
cls._instance = None
|
||||
|
||||
@property
|
||||
def console_host(self):
|
||||
|
||||
|
||||
Reference in new issue
Block a user