From c20ff48f2c55c9b48a8fb181a3c3fdb9921bd054 Mon Sep 17 00:00:00 2001 From: Alan Young Date: Mon, 12 Sep 2016 18:07:29 +0100 Subject: Fix cut-n-paste typo Change-Id: Ie57f18aee639d6ba911cd95ac6b45d048462c105 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()); -- cgit v0.10.2-6-g49f6