Mercurial > libervia-web
diff src/browser/libervia_main.py @ 456:da2a7f2b34c9
browser and server sides: use asyncConnect instead of connect
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 23 May 2014 10:41:42 +0200 |
parents | 05e98b8d9f02 |
children | b55bc50756fa |
line wrap: on
line diff
--- a/src/browser/libervia_main.py Thu May 29 15:51:26 2014 +0200 +++ b/src/browser/libervia_main.py Fri May 23 10:41:42 2014 +0200 @@ -121,7 +121,7 @@ class RegisterCall(LiberviaJsonProxy): def __init__(self): LiberviaJsonProxy.__init__(self, "/register_api", - ["isRegistered", "isConnected", "connect", "registerParams", "getMenus"]) + ["isRegistered", "isConnected", "asyncConnect", "registerParams", "getMenus"]) class BridgeCall(LiberviaJsonProxy): @@ -333,7 +333,7 @@ def _isConnectedCB(self, connected): if not connected: - self._register.call('connect', lambda x: self.logged()) + self._register.call('asyncConnect', lambda x: self.logged()) else: self.logged()