From 10433d9d37452ed453272e12acc6012c1c15229d Mon Sep 17 00:00:00 2001 From: eug-vs Date: Wed, 2 Dec 2020 05:15:49 +0300 Subject: fix: stop all jobs along with polling --- lib/scheduler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/scheduler.ts b/lib/scheduler.ts index d6b28e9..e1437bd 100644 --- a/lib/scheduler.ts +++ b/lib/scheduler.ts @@ -31,9 +31,10 @@ class Scheduler { public startPolling() { this.pollingJob.start(); } - + public stopPolling() { this.pollingJob.stop(); + this.stopAllJobs(); } private startAllJobs() { -- cgit v1.2.3