Prevent a crash when you close a dynamips node and create a link at the same time

Fix #853
This commit is contained in:
Julien Duponchelle committed 2017-01-06 09:33:10 +01:00
1 parent d4be588973
commit 6778b29fc0
1 file changed
+2 -1
+2 -1
View File
@@ -49,7 +49,8 @@ class NIOUDP(NIO):
@asyncio.coroutine
def create(self):
if not self._hypervisor:
return
yield from self._hypervisor.send("nio create_udp {name} {lport} {rhost} {rport}".format(name=self._name,
lport=self._lport,
rhost=self._rhost,