From 3a02aedc64f839c07417f2771f0ae5e9b5a809c2 Mon Sep 17 00:00:00 2001
From: Daniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Date: Tue, 23 Feb 2010 22:36:14 +0000
Subject: [PATCH] If no limits are currently set, do nothing.

---
 python/bwlimit.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/python/bwlimit.py b/python/bwlimit.py
index b6ef291..a9e204a 100644
--- a/python/bwlimit.py
+++ b/python/bwlimit.py
@@ -679,6 +679,9 @@ def main():
         elif opt == '-h':
             usage()
 
+    if bwcap == -1:
+        return 0
+
     if len(argv):
         if argv[0] == "init" or (argv[0] == "on" and len(argv) == 1):
             # (Re)initialize
-- 
2.47.0