diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/server/xmlrpc.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bitbake/lib/bb/server/xmlrpc.py b/bitbake/lib/bb/server/xmlrpc.py index 389327a60f..82c0e8d8a6 100644 --- a/bitbake/lib/bb/server/xmlrpc.py +++ b/bitbake/lib/bb/server/xmlrpc.py | |||
@@ -354,9 +354,12 @@ class BitBakeXMLRPCClient(BitBakeBaseServer): | |||
354 | s.close() | 354 | s.close() |
355 | except: | 355 | except: |
356 | return None | 356 | return None |
357 | self.serverImpl = XMLRPCProxyServer(host, port) | 357 | try: |
358 | self.connection = BitBakeXMLRPCServerConnection(self.serverImpl, (ip, 0), self.observer_only, featureset) | 358 | self.serverImpl = XMLRPCProxyServer(host, port) |
359 | return self.connection.connect() | 359 | self.connection = BitBakeXMLRPCServerConnection(self.serverImpl, (ip, 0), self.observer_only, featureset) |
360 | return self.connection.connect() | ||
361 | except Exception as e: | ||
362 | bb.fatal("Could not connect to server at %s:%s (%s)" % (host, port, str(e))) | ||
360 | 363 | ||
361 | def endSession(self): | 364 | def endSession(self): |
362 | self.connection.removeClient() | 365 | self.connection.removeClient() |