mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-25 16:28:11 +00:00
Backport: Remove timeout to wait for connections to finish.
This commit is contained in:
parent
a8142a04f8
commit
f1bbacecd6
@ -85,7 +85,7 @@ class Server:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if self._handler:
|
if self._handler:
|
||||||
yield from self._handler.finish_connections(1.0)
|
yield from self._handler.finish_connections()
|
||||||
self._handler = None
|
self._handler = None
|
||||||
|
|
||||||
for module in MODULES:
|
for module in MODULES:
|
||||||
@ -253,6 +253,6 @@ class Server:
|
|||||||
log.warning("TypeError exception in the loop {}".format(e))
|
log.warning("TypeError exception in the loop {}".format(e))
|
||||||
finally:
|
finally:
|
||||||
if self._handler:
|
if self._handler:
|
||||||
self._loop.run_until_complete(self._handler.finish_connections(1.0))
|
self._loop.run_until_complete(self._handler.finish_connections())
|
||||||
server.close()
|
server.close()
|
||||||
self._loop.run_until_complete(app.finish())
|
self._loop.run_until_complete(app.finish())
|
||||||
|
Loading…
Reference in New Issue
Block a user