# HG changeset patch # User Goffi # Date 1527238321 -7200 # Node ID 93d64ce7a429e59ee334e2d00b5395366fc5d1d0 # Parent 973d4551ffaecb44a634c39eae698f3129515fe6 core (xmpp): fixed "Force server" param on Android diff -r 973d4551ffae -r 93d64ce7a429 sat/core/xmpp.py --- a/sat/core/xmpp.py Fri May 25 10:52:01 2018 +0200 +++ b/sat/core/xmpp.py Fri May 25 10:52:01 2018 +0200 @@ -471,7 +471,8 @@ # FIXME: temporary hack as SRV is not working on android # TODO: remove this hack and fix SRV log.info(u"FIXME: Android hack, ignoring SRV") - host = user_jid.host + if host is None: + host = user_jid.host # for now we consider Android devices to be always phones self.identities = [disco.DiscoIdentity(u"client", u"phone", C.APP_NAME)]