diff options
Diffstat (limited to 'libmproxy/controller.py')
-rw-r--r-- | libmproxy/controller.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libmproxy/controller.py b/libmproxy/controller.py index 52b6ac6b..f0e65e7f 100644 --- a/libmproxy/controller.py +++ b/libmproxy/controller.py @@ -59,7 +59,7 @@ class Slave(threading.Thread): class Master: def __init__(self, server): self.server = server - self.masterq = None + self.masterq = Queue.Queue() def tick(self, q): try: @@ -75,12 +75,10 @@ class Master: pass def run(self): - q = Queue.Queue() - self.masterq = q - slave = Slave(q, self.server) + slave = Slave(self.masterq, self.server) slave.start() while not exit: - self.tick(q) + self.tick(self.masterq) self.shutdown() def handle(self, msg): |