summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/prserv/serv.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/prserv/serv.py b/bitbake/lib/prserv/serv.py
index a2da07227f..6be78c82fb 100644
--- a/bitbake/lib/prserv/serv.py
+++ b/bitbake/lib/prserv/serv.py
@@ -84,6 +84,8 @@ class PRServer(SimpleXMLRPCServer):
84 except queue.Empty: 84 except queue.Empty:
85 self.table.sync_if_dirty() 85 self.table.sync_if_dirty()
86 continue 86 continue
87 if request is None:
88 continue
87 try: 89 try:
88 self.finish_request(request, client_address) 90 self.finish_request(request, client_address)
89 self.shutdown_request(request) 91 self.shutdown_request(request)
@@ -103,7 +105,8 @@ class PRServer(SimpleXMLRPCServer):
103 def sigterm_handler(self, signum, stack): 105 def sigterm_handler(self, signum, stack):
104 if self.table: 106 if self.table:
105 self.table.sync() 107 self.table.sync()
106 self.quit=True 108 self.quit()
109 self.requestqueue.put((None, None))
107 110
108 def process_request(self, request, client_address): 111 def process_request(self, request, client_address):
109 self.requestqueue.put((request, client_address)) 112 self.requestqueue.put((request, client_address))