aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/scheduler.ts3
1 files changed, 2 insertions, 1 deletions
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() {