1
0

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:
Neil Booth
2015-05-05 17:24:03 +09:00
parent d6b2cdd595
commit c07e956127
3 changed files with 9 additions and 12 deletions

View File

@@ -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):