1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 09:18:08 +00:00

Socket shutdown.

This commit is contained in:
grossmj 2014-05-06 19:11:51 -06:00
parent 51c1f15853
commit 34ad75860d

View File

@ -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()