Pass the response_queue to the constructor, not start().
Removes an unnecessary Thread base-class override. The python documentation also strongly discourages overriding anything other than run().
This commit is contained in:
@@ -271,9 +271,9 @@ class Network(util.DaemonThread):
|
||||
def start_interface(self, server):
|
||||
if server in self.interfaces.keys():
|
||||
return
|
||||
i = interface.Interface(server, self.config)
|
||||
i = interface.Interface(server, self.queue, self.config)
|
||||
self.pending_servers.add(server)
|
||||
i.start(self.queue)
|
||||
i.start()
|
||||
return i
|
||||
|
||||
def start_random_interface(self):
|
||||
|
||||
Reference in New Issue
Block a user