Skip to content

Commit ef59cd8

Browse files
committed
Return correct success condition in cgroupDel
Without this, we end up retrying until we fail, instead of returning immediately on success!
1 parent 9db6cdc commit ef59cd8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mininet/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ def cgroupDel( self ):
674674
"Clean up our cgroup"
675675
# info( '*** deleting cgroup', self.cgroup, '\n' )
676676
_out, _err, exitcode = errRun( 'cgdelete -r ' + self.cgroup )
677-
return exitcode != 0
677+
return exitcode == 0 # success condition
678678

679679
def popen( self, *args, **kwargs ):
680680
"""Return a Popen() object in node's namespace

0 commit comments

Comments
 (0)