Skip to content

Commit

Permalink
Merge pull request #951 from ably/prevent-always-fallback-on-websocke…
Browse files Browse the repository at this point in the history
…t-error

fix: fallback hosts always being used on transport error
  • Loading branch information
AndyTWF authored Jun 7, 2023
2 parents bbbcb4d + f944ca1 commit b215643
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,12 @@ StateIndication validateTransition(StateIndication target) {
void enactForChannel(StateIndication stateIndication, ConnectionStateChange change, Channel channel) {
channel.setConnected(stateIndication.reattachOnResumeFailure);
}

@Override
void enact(StateIndication stateIndication, ConnectionStateChange change) {
super.enact(stateIndication, change);
pendingConnect = null;
}
}

/**************************************************
Expand Down

0 comments on commit b215643

Please sign in to comment.