Skip to content

Commit

Permalink
Ensure we close the socket if there is an issue during handshake
Browse files Browse the repository at this point in the history
Closes #17
  • Loading branch information
n.fraison committed Nov 16, 2018
1 parent a171f12 commit 37e9ca0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public void establishConnection() {
connectionEstablished = true;
return;
} catch (IOException | ProtocolVersion.InvalidFrameException | ProtocolVersion.InvalidProtocolVersionException exception) {
close();
waitBeforeRetry();
}
}
Expand Down

0 comments on commit 37e9ca0

Please sign in to comment.