From 1be3f7f388141fd42ff6eced463991dd9215ce9c Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Tue, 20 Aug 2019 22:28:48 +0200 Subject: [PATCH] fix(core): update --- ts/smartnginx.classes.smartnginx.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ts/smartnginx.classes.smartnginx.ts b/ts/smartnginx.classes.smartnginx.ts index fd0f154..5aa3bc2 100644 --- a/ts/smartnginx.classes.smartnginx.ts +++ b/ts/smartnginx.classes.smartnginx.ts @@ -134,4 +134,13 @@ export class SmartNginx { this.hostCandidates.wipe(); } } + + /** + * stops the smartnginx instance + */ + public async stop() { + if (this.nginxProcess) { + await this.nginxProcess.stop(); + } + } }