waitConnected: don't compare timeout if it is None
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user