Skip to content

Commit

Permalink
no call session.close() in onWebSocketError() (apache#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrsakai authored and saandrews committed Apr 24, 2017
1 parent f13606e commit 2f1c5fa
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ public void onWebSocketError(Throwable cause) {
super.onWebSocketError(cause);
log.info("[{}] WebSocket error on topic {} : {}", getSession().getRemoteAddress(), topic, cause.getMessage());
try {
getSession().close();
close();
} catch (IOException e) {
log.error("Failed in closing producer for topic[{}] with error: [{}]: ", topic, e.getMessage());
Expand Down

0 comments on commit 2f1c5fa

Please sign in to comment.