summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/server/process.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/server/process.py')
-rw-r--r--bitbake/lib/bb/server/process.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py
index 3a0706c498..ba9133639d 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/lib/bb/server/process.py
@@ -83,15 +83,14 @@ class ProcessServer(Process):
83 self.keep_running = Event() 83 self.keep_running = Event()
84 self.keep_running.set() 84 self.keep_running.set()
85 85
86 for event in bb.event.ui_queue:
87 self.event_queue.put(event)
88
89 def register_idle_function(self, function, data): 86 def register_idle_function(self, function, data):
90 """Register a function to be called while the server is idle""" 87 """Register a function to be called while the server is idle"""
91 assert hasattr(function, '__call__') 88 assert hasattr(function, '__call__')
92 self._idlefunctions[function] = data 89 self._idlefunctions[function] = data
93 90
94 def run(self): 91 def run(self):
92 for event in bb.event.ui_queue:
93 self.event_queue.put(event)
95 self.event_handle = bb.event.register_UIHhandler(self) 94 self.event_handle = bb.event.register_UIHhandler(self)
96 bb.cooker.server_main(self.cooker, self.main) 95 bb.cooker.server_main(self.cooker, self.main)
97 96