@ -430,10 +430,11 @@ class Network(util.DaemonThread):
self.response_queue.put(response)
def handle_requests(self):
while True:
try:
request = self.requests_queue.get(timeout=0.1)
request = self.requests_queue.get_nowait()
except Queue.Empty:
return
break
self.process_request(request)
def process_request(self, request):