diff options
author | Kevin Smith <git@kismith.co.uk> | 2012-10-02 12:50:14 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-10-02 12:50:14 (GMT) |
commit | df169511d4201a8850a99e07d3b437a23391b4bd (patch) | |
tree | d68ddd4acdcc773a568198ec0fdde40bdb084c9d /src/com | |
parent | dc9e9875a01065f3091738eb6d370c77d914481a (diff) | |
download | stroke-df169511d4201a8850a99e07d3b437a23391b4bd.zip stroke-df169511d4201a8850a99e07d3b437a23391b4bd.tar.bz2 |
Don't crash when overriding the connect host
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/isode/stroke/network/Connector.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/isode/stroke/network/Connector.java b/src/com/isode/stroke/network/Connector.java index b1ee73c..983882b 100644 --- a/src/com/isode/stroke/network/Connector.java +++ b/src/com/isode/stroke/network/Connector.java @@ -33,6 +33,8 @@ public class Connector { assert serviceQuery == null; assert timer == null; queriedAllServices = false; + serviceQueryResults = new ArrayList<Result>(); + if (doServiceLookups) { serviceQuery = resolver.createServiceQuery("_xmpp-client._tcp." + hostname); serviceQuery.onResult.connect(new Slot1<Collection<DomainNameServiceQuery.Result>>() { |