mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-26 00:38:10 +00:00
Force canceling all task when shutdown server
https://bugs.python.org/issue24080 Fix #705
This commit is contained in:
parent
d979f08c93
commit
2fbc391319
@ -99,6 +99,9 @@ class Server:
|
|||||||
if self._port_manager.udp_ports:
|
if self._port_manager.udp_ports:
|
||||||
log.warning("UDP ports are still used {}".format(self._port_manager.udp_ports))
|
log.warning("UDP ports are still used {}".format(self._port_manager.udp_ports))
|
||||||
|
|
||||||
|
for task in asyncio.Task.all_tasks():
|
||||||
|
task.cancel()
|
||||||
|
|
||||||
self._loop.stop()
|
self._loop.stop()
|
||||||
|
|
||||||
def _signal_handling(self):
|
def _signal_handling(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user