Fix missing Sentry span for WebSocket close

Fixes CODEOCEAN-FRONTEND-3C
This commit is contained in:
Sebastian Serth
2023-09-19 22:41:27 +02:00
parent 2200fa427e
commit 6f3b72d207

View File

@ -33,7 +33,7 @@ CodeOceanEditorWebsocket = {
);
CodeOceanEditorWebsocket.websocket = this.websocket;
this.websocket.onError(this.showWebsocketError.bind(this));
this.websocket.onClose(span.finish.bind(span));
this.websocket.onClose(span?.finish?.bind(span));
},
initializeSocketForTesting: function(url) {