mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 22:41:12 +02:00
Fixes module unload & adds host, port and allow-remote-console command line args.
This commit is contained in:
1 parent
59f940625a
commit
39e3ca91a9
6 files changed
+36
-23
No files matched your search
@@ -42,13 +42,13 @@ log = logging.getLogger(__name__)
|
||||
|
||||
class Server:
|
||||
|
||||
def __init__(self, host, port, console_bind_to_any):
|
||||
def __init__(self, host, port):
|
||||
|
||||
self._host = host
|
||||
self._port = port
|
||||
self._loop = None
|
||||
self._start_time = time.time()
|
||||
self._port_manager = PortManager(host, console_bind_to_any)
|
||||
self._port_manager = PortManager(host)
|
||||
|
||||
# TODO: server config file support, to be reviewed
|
||||
# # get the projects and temp directories from the configuration file (passed to the modules)
|
||||
@@ -80,7 +80,7 @@ class Server:
|
||||
for module in MODULES:
|
||||
log.debug("Unloading module {}".format(module.__name__))
|
||||
m = module.instance()
|
||||
self._loop.run_until_complete(m.unload())
|
||||
asyncio.async(m.unload())
|
||||
self._loop.stop()
|
||||
|
||||
def _signal_handling(self):
|
||||
|
||||
Reference in new issue
Block a user