mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-19 14:58:07 +00:00
Fix race conditions in creation of Frame Relay Switch
This commit is contained in:
parent
aae37034e1
commit
42f409d5f9
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user