diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/ui/uievent.py | 10 |
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 | |||
24 | client/server deadlocks. | 24 | client/server deadlocks. |
25 | """ | 25 | """ |
26 | 26 | ||
27 | import socket, threading, pickle | 27 | import socket, threading, pickle, collections |
28 | from SimpleXMLRPCServer import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler | 28 | from SimpleXMLRPCServer import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler |
29 | 29 | ||
30 | class BBUIEventQueue: | 30 | class 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 |