Fix race conditions in creation of Frame Relay Switch

This commit is contained in:
Julien Duponchelle committed 2017-03-28 11:25:26 +02:00
1 parent aae37034e1
commit 42f409d5f9
1 file changed
+2 -2
@@ -239,10 +239,10 @@ class FrameRelaySwitch(Device):
"""
if port1 not in self._nios:
raise DynamipsError("Port {} is not allocated".format(port1))
return
if port2 not in self._nios:
raise DynamipsError("Port {} is not allocated".format(port2))
return
nio1 = self._nios[port1]
nio2 = self._nios[port2]