mirror of
https://github.com/Sheldan/Sissi.git
synced 2026-01-26 19:21:43 +00:00
[SIS-xxx] dont close connection
This commit is contained in:
@@ -65,13 +65,10 @@ public class WebsocketListener extends WebSocketListener implements AsyncStartup
|
||||
@Override
|
||||
public void onFailure(WebSocket webSocket, Throwable t, @Nullable Response response) {
|
||||
log.warn("Websocket connection failed...", t);
|
||||
webSocket.close(1000, null);
|
||||
webSocket.close(1000, "Connection closed");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onClosing(WebSocket webSocket, int code, String reason) {
|
||||
webSocket.close(1000, null);
|
||||
log.info("Closing websocket connection. It was closed with code {} and reason {}.", code, reason);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user