()
| 638 | if (ws && ws.readyState !== WebSocket.CLOSED && ws.readyState !== WebSocket.CLOSING) ws.close(1000) |
| 639 | |
| 640 | const finalize = () => { |
| 641 | persistTerminal({ term, addon: serializeAddon, cursor, id, onCleanup: props.onCleanup }) |
| 642 | cleanup() |
| 643 | } |
| 644 | |
| 645 | if (!output) { |
| 646 | finalize() |
no test coverage detected