Force channel leave even if no join had happened
Change-Id: I8bb02dfc4323a4e0dec1589f4d67d4e8f45e9dcb
diff --git a/src/test/utils/Channels.py b/src/test/utils/Channels.py
index 6119e8a..80a086e 100644
--- a/src/test/utils/Channels.py
+++ b/src/test/utils/Channels.py
@@ -177,12 +177,12 @@
self.last_chan = chan
return chan, join_start
- def leave(self, chan):
+ def leave(self, chan, force = False):
if chan is None:
chan = self.last_chan
if chan is None or chan >= self.num:
return False
- if self.get_state(chan) != self.Joined:
+ if force is False and self.get_state(chan) != self.Joined:
return False
groups = [self.channels[chan]]
self.igmp_leave(groups)