Fixes checks for free console and aux ports.

This commit is contained in:
grossmj committed 2014-04-11 16:24:08 -06:00
1 parent 96231e3f7f
commit e70ea26639
3 files changed
+18 -7

No files matched your search

+1 -1
View File
@@ -793,7 +793,7 @@ class IOUDevice(object):
socket_type = socket.SOCK_STREAM
for port in range(start_port, end_port):
if port > end_port:
if port + 1 == end_port:
raise IOUError("Could not find a free port between {0} and {1}".format(start_port, end_port))
try:
if ":" in host: