Skip to content

Commit

Permalink
fix: prevent socket from reconnecting after middleware failure
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Jul 10, 2022
1 parent ee35261 commit 95ecf22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/io/socket/client/Socket.java
Expand Up @@ -334,6 +334,7 @@ private void onpacket(Packet<?> packet) {
break;

case Parser.CONNECT_ERROR:
this.destroy();
super.emit(EVENT_CONNECT_ERROR, packet.data);
break;
}
Expand Down

0 comments on commit 95ecf22

Please sign in to comment.