From 59d932ba15ea6dc5ffe041e1667a8d4fea3b86ce Mon Sep 17 00:00:00 2001 From: Carlos C Date: Sat, 5 Dec 2015 22:54:31 +0100 Subject: [PATCH] cron ruleset: stop all jobs before starting them again --- rules/cron/cron.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rules/cron/cron.go b/rules/cron/cron.go index 9d81e62..bdb0d63 100644 --- a/rules/cron/cron.go +++ b/rules/cron/cron.go @@ -174,6 +174,7 @@ func (r *cronRuleset) start() { r.mu.Lock() defer r.mu.Unlock() + r.stop() for room, rules := range r.attachedCrons { for _, rule := range rules { c := make(chan struct{})