Mercurial > libervia-backend
diff src/core/xmpp.py @ 2113:9c861d07b5b6
core: added sessionGetInfos bridge method to retrieve various data on current profile session + client.started keep start time
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 05 Jan 2017 22:22:13 +0100 |
parents | 2d633b3c923d |
children | f0bc29dc8157 |
line wrap: on
line diff
--- a/src/core/xmpp.py Thu Jan 05 20:37:01 2017 +0100 +++ b/src/core/xmpp.py Thu Jan 05 22:22:13 2017 +0100 @@ -44,6 +44,7 @@ def __init__(self, host_app, profile, user_jid, password, host=None, port=C.XMPP_C2S_PORT, max_retries=C.XMPP_MAX_RETRIES): # XXX: DNS SRV records are checked when the host is not specified. # If no SRV record is found, the host is directly extracted from the JID. + self.started = time.time() if sys.platform == "android": # FIXME: temporary hack as SRV is not working on android # TODO: remove this hack and fix SRV