summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-10-02 12:50:14 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-10-02 12:50:14 (GMT)
commitdf169511d4201a8850a99e07d3b437a23391b4bd (patch)
treed68ddd4acdcc773a568198ec0fdde40bdb084c9d /src/com
parentdc9e9875a01065f3091738eb6d370c77d914481a (diff)
downloadstroke-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.java2
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>>() {