Skip to content

Commit

Permalink
refactor wrt will feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
kn100 committed Aug 29, 2018
1 parent 0bdc7c3 commit 3ca47d2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,10 @@ public void run() {
}, reconnectInterval, TimeUnit.SECONDS);
}

// Received error codes 4000 >= 4099 indicate we shouldn't attempt reconnection
// Received error codes 4000-4099 indicate we shouldn't attempt reconnection
// https://pusher.com/docs/pusher_protocol#error-codes
private boolean shouldReconnect(int code) {
return !(code >= 4000 && code <= 4099);
return code < 4000 || code >= 4100;
}

private void cancelTimeoutsAndTransitonToDisconnected() {
Expand Down

0 comments on commit 3ca47d2

Please sign in to comment.