From 8136769b66a9b1c2be3ca1890460817896442de4 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Mon, 4 Oct 2021 12:06:12 -0700 Subject: [PATCH] fix: close vscodeServer on server close if defined --- src/node/routes/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/routes/index.ts b/src/node/routes/index.ts index 08a2dcc18..13232f703 100644 --- a/src/node/routes/index.ts +++ b/src/node/routes/index.ts @@ -162,7 +162,7 @@ export const register = async ( } server.on("close", () => { - vscode.vscodeServer.close() + vscode?.vscodeServer.close() }) app.use(() => {