Mercurial > libervia-web
diff src/server/server.py @ 472:42c8e91af048
server side: fixed start sequence when SERVICE_PROFILE is already connected
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 10 Jun 2014 16:02:43 +0200 |
parents | de039f008333 |
children | d1565906f228 |
line wrap: on
line diff
--- a/src/server/server.py Tue Jun 10 15:59:52 2014 +0200 +++ b/src/server/server.py Tue Jun 10 16:02:43 2014 +0200 @@ -1105,10 +1105,12 @@ if not self.bridge.isConnected(C.SERVICE_PROFILE): self.bridge.asyncConnect(C.SERVICE_PROFILE, self.passphrase, callback=self._startService, errback=eb) + else: + self._startService() self.initialised.addCallback(initOk) - def _startService(self, dummy): + def _startService(self, dummy=None): """Actually start the HTTP(S) server(s) after the profile for Libervia is connected. @raise IOError: the certificate file doesn't exist @raise OpenSSL.crypto.Error: the certificate file is invalid