mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-13 20:08:55 +00:00
Socket shutdown.
This commit is contained in:
parent
51c1f15853
commit
34ad75860d
@ -131,6 +131,7 @@ class DynamipsHypervisor(object):
|
||||
"""
|
||||
|
||||
self.send("hypervisor close")
|
||||
self._socket.shutdown(socket.SHUT_RDWR)
|
||||
self._socket.close()
|
||||
self._socket = None
|
||||
|
||||
@ -140,6 +141,7 @@ class DynamipsHypervisor(object):
|
||||
"""
|
||||
|
||||
self.send("hypervisor stop")
|
||||
self._socket.shutdown(socket.SHUT_RDWR)
|
||||
self._socket.close()
|
||||
self._socket = None
|
||||
self._nio_udp_auto_instances.clear()
|
||||
|
Loading…
Reference in New Issue
Block a user