From 6b5db2f29ebe205319fc40f27a8cd745bfa29ff1 Mon Sep 17 00:00:00 2001 From: Faiyaz Ahmed Date: Thu, 29 Jan 2009 20:45:52 +0000 Subject: [PATCH] dirty...dirty..dirty hack to get rid of r2q. --- python/bwlimit.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/bwlimit.py b/python/bwlimit.py index 7b3cf05..58d3052 100644 --- a/python/bwlimit.py +++ b/python/bwlimit.py @@ -325,7 +325,10 @@ def stop(dev = dev): ''' Turn off all queing. Stops all slice HTBS and reverts to pfifo_fast (the default). ''' - tc("qdisc del dev %s root" % dev) + try: + for i in range(0,2): + tc("qdisc del dev %s root" % dev) + except: pass def init(dev = dev, bwcap = bwmax): -- 2.43.0