From c80c9cc3090010514df4b442141ab6729d64c213 Mon Sep 17 00:00:00 2001 From: Robin Schreiber Date: Mon, 16 Dec 2024 21:40:39 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=95:=20properly=20await=20close=20call?= =?UTF-8?q?=20in=20case=20open()=20fails?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lively.headless/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lively.headless/index.js b/lively.headless/index.js index ed2b3b5f27..1bc6f65ea0 100644 --- a/lively.headless/index.js +++ b/lively.headless/index.js @@ -93,7 +93,7 @@ export class HeadlessSession { return this; } catch (err) { console.error(`[lively.headless] ${err.stack}`); - try { this.close(); } catch (err) {} + try { await this.close(); } catch (err) {} this.state = SESSION_STATE.ERRORED; this.error = String(err.stack); throw err;