Mercurial > libervia-web
diff src/browser/libervia_main.py @ 548:530f3fc3e3d7
browser_side: fixes signal callback with no argument (e.g disconnected)
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 11 Sep 2014 12:59:13 +0200 |
parents | 048ae7314156 |
children | cd56f2b0e85b |
line wrap: on
line diff
--- a/src/browser/libervia_main.py Wed Sep 10 15:50:42 2014 +0200 +++ b/src/browser/libervia_main.py Thu Sep 11 12:59:13 2014 +0200 @@ -460,6 +460,8 @@ def _getSignalsCB(self, signal_data): self.bridge_signals.call('getSignals', self._getSignalsCB) + if len(signal_data) == 1: + signal_data.append([]) log.debug("Got signal ==> name: %s, params: %s" % (signal_data[0], signal_data[1])) name, args = signal_data if name == 'personalEvent':