diff options
Diffstat (limited to 'bitbake/lib/bb/ui/uievent.py')
-rw-r--r-- | bitbake/lib/bb/ui/uievent.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/uievent.py b/bitbake/lib/bb/ui/uievent.py index b404805d81..2fef4e4659 100644 --- a/bitbake/lib/bb/ui/uievent.py +++ b/bitbake/lib/bb/ui/uievent.py | |||
@@ -63,17 +63,20 @@ class BBUIEventQueue: | |||
63 | 63 | ||
64 | def queue_event(self, event): | 64 | def queue_event(self, event): |
65 | self.eventQueueLock.acquire() | 65 | self.eventQueueLock.acquire() |
66 | self.eventQueue.append(pickle.loads(event)) | 66 | self.eventQueue.append(event) |
67 | self.eventQueueNotify.set() | 67 | self.eventQueueNotify.set() |
68 | self.eventQueueLock.release() | 68 | self.eventQueueLock.release() |
69 | 69 | ||
70 | def send_event(self, event): | ||
71 | self.queue_event(pickle.loads(event)) | ||
72 | |||
70 | def startCallbackHandler(self): | 73 | def startCallbackHandler(self): |
71 | 74 | ||
72 | server = UIXMLRPCServer() | 75 | server = UIXMLRPCServer() |
73 | self.host, self.port = server.socket.getsockname() | 76 | self.host, self.port = server.socket.getsockname() |
74 | 77 | ||
75 | server.register_function( self.system_quit, "event.quit" ) | 78 | server.register_function( self.system_quit, "event.quit" ) |
76 | server.register_function( self.queue_event, "event.send" ) | 79 | server.register_function( self.send_event, "event.send" ) |
77 | server.socket.settimeout(1) | 80 | server.socket.settimeout(1) |
78 | 81 | ||
79 | self.EventHandle = self.BBServer.registerEventHandler(self.host, self.port) | 82 | self.EventHandle = self.BBServer.registerEventHandler(self.host, self.port) |