mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
Prevent a crash when you close a dynamips node and create a link at the same time
Fix #853
This commit is contained in:
parent
d4be588973
commit
6778b29fc0
@ -49,7 +49,8 @@ class NIOUDP(NIO):
|
|||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def create(self):
|
def create(self):
|
||||||
|
if not self._hypervisor:
|
||||||
|
return
|
||||||
yield from self._hypervisor.send("nio create_udp {name} {lport} {rhost} {rport}".format(name=self._name,
|
yield from self._hypervisor.send("nio create_udp {name} {lport} {rhost} {rport}".format(name=self._name,
|
||||||
lport=self._lport,
|
lport=self._lport,
|
||||||
rhost=self._rhost,
|
rhost=self._rhost,
|
||||||
|
Loading…
Reference in New Issue
Block a user