Skip to content

Commit 3f03c7a

Browse files
committed
fix koush#245 on socket.io reconnect, update the connecting field with the current Cancellable
Ensure calls to SocketIOConnection.reconnect() when a reconnect attempt is already is progress will properly have their DependentCancellables made children of that attempt.
1 parent 5530bb8 commit 3f03c7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AndroidAsync/src/com/koushikdutta/async/http/socketio/SocketIOConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void reconnect(final DependentCancellable child) {
104104

105105
request.logi("Reconnecting socket.io");
106106

107-
Cancellable connecting = httpClient.executeString(request, null)
107+
connecting = httpClient.executeString(request, null)
108108
.then(new TransformFuture<SocketIOTransport, String>() {
109109
@Override
110110
protected void transform(String result) throws Exception {

0 commit comments

Comments
 (0)