1
0
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:
Julien Duponchelle 2017-03-28 11:25:26 +02:00
parent aae37034e1
commit 42f409d5f9
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -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]