summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/isode/stroke/network/Connector.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/isode/stroke/network/Connector.java b/src/com/isode/stroke/network/Connector.java
index 2823679..73a478b 100644
--- a/src/com/isode/stroke/network/Connector.java
+++ b/src/com/isode/stroke/network/Connector.java
@@ -218,9 +218,9 @@ public class Connector {
addressQuery.onResult.disconnectAll();
addressQuery = null;
}
- if (currentConnection != null) {
+ if (currentConnectionConnectFinishedConnection != null) {
currentConnectionConnectFinishedConnection.disconnect();
- currentConnection = null;
+ currentConnectionConnectFinishedConnection = null;
}
onConnectFinished.emit(connection, (connection != null || foundSomeDNS) ? null : new DomainNameResolveError());