Skip to content

Commit

Permalink
Merge pull request #140 from pusher/bug/illegalstateexception_when_co…
Browse files Browse the repository at this point in the history
…nnection_is_received

Add error handling for repeated connected status
  • Loading branch information
zmarkan authored Mar 29, 2017
2 parents b0a83eb + 5f66b3e commit d015dc5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ private void handleConnectionMessage(final String message) {
final Map dataMap = GSON.fromJson(dataString, Map.class);
socketId = (String)dataMap.get("socket_id");

updateState(ConnectionState.CONNECTED);
if(state != ConnectionState.CONNECTED){
updateState(ConnectionState.CONNECTED);

}
reconnectAttempts = 0;
}

Expand Down

0 comments on commit d015dc5

Please sign in to comment.