@@ -29,7 +29,7 @@ def getFreePort():
exists = True
else:
# We seem to be the second entry, so chose another one
- p.remove(port)
+ ports.remove(port)
break
# Didn't find a duplicate