From cc421c3321612aa516891f4b595cbd5dc77dfe4a Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Thu, 30 Mar 2023 19:44:44 +0200 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/typedserver.classes.typedserver.ts | 4 +++- ts_web/00_commitinfo_data.ts | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 479507f..56d299b 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@apiglobal/typedserver', - version: '2.0.43', + version: '2.0.44', description: 'easy serving of static files' } diff --git a/ts/typedserver.classes.typedserver.ts b/ts/typedserver.classes.typedserver.ts index b0c4c74..20177c6 100644 --- a/ts/typedserver.classes.typedserver.ts +++ b/ts/typedserver.classes.typedserver.ts @@ -201,7 +201,9 @@ export class TypedServer { this.ended = true; await this.server.stop(); await this.typedsocket.stop(); - await this.smartchokInstance.stop(); + if (this.smartchokInstance) { + await this.smartchokInstance.stop(); + } } public async createServeDirHash() { diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index 479507f..56d299b 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@apiglobal/typedserver', - version: '2.0.43', + version: '2.0.44', description: 'easy serving of static files' }