summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/ui/uievent.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/uievent.py b/bitbake/lib/bb/ui/uievent.py
index 6b479bfa54..df093c53c0 100644
--- a/bitbake/lib/bb/ui/uievent.py
+++ b/bitbake/lib/bb/ui/uievent.py
@@ -24,7 +24,7 @@ server and queue them for the UI to process. This process must be used to avoid
24client/server deadlocks. 24client/server deadlocks.
25""" 25"""
26 26
27import socket, threading, pickle 27import socket, threading, pickle, collections
28from SimpleXMLRPCServer import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler 28from SimpleXMLRPCServer import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler
29 29
30class BBUIEventQueue: 30class BBUIEventQueue:
@@ -51,7 +51,13 @@ class BBUIEventQueue:
51 # giving up 51 # giving up
52 52
53 for count_tries in range(5): 53 for count_tries in range(5):
54 self.EventHandle, error = self.BBServer.registerEventHandler(self.host, self.port) 54 ret = self.BBServer.registerEventHandler(self.host, self.port)
55
56 if isinstance(ret, collections.Iterable):
57 self.EventHandle, error = ret
58 else:
59 self.EventHandle = ret
60 error = ""
55 61
56 if self.EventHandle != None: 62 if self.EventHandle != None:
57 break 63 break