Remove session state from onClose only
Doing the same eagerly from onError has the side effect of not being able to delegate handleConnectionClosed to interceptors. Closes gh-872
This commit is contained in:
@@ -326,14 +326,6 @@ public class GraphQlWebSocketHandler extends TextWebSocketHandler implements Sub
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handleTransportError(WebSocketSession session, Throwable exception) {
|
||||
SessionState info = this.sessionInfoMap.remove(session.getId());
|
||||
if (info != null) {
|
||||
info.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) {
|
||||
String id = session.getId();
|
||||
|
||||
Reference in New Issue
Block a user