Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

Commit

Permalink
cron ruleset: stop all jobs before starting them again
Browse files Browse the repository at this point in the history
  • Loading branch information
ucirello committed Dec 5, 2015
1 parent 231ffc7 commit 59d932b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rules/cron/cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{})
Expand Down

0 comments on commit 59d932b

Please # to comment.