waitConnected: don't compare timeout if it is None

This commit is contained in:
Bob Lantz
2018-07-11 23:29:19 +00:00
parent 82998cac8b
commit 966dd20b4b
+1 -1
View File
@@ -190,7 +190,7 @@ class Mininet( object ):
if not remaining:
info( '\n' )
return True
if time > timeout and timeout is not None:
if timeout is not None and time > timeout:
break
sleep( delay )
time += delay