mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(alerting): make sure the map contains the responding alert
This commit is contained in:
@@ -129,7 +129,9 @@ func (this *Scheduler) Executor(executor Executor) {
|
||||
func (this *Scheduler) HandleResponses() {
|
||||
for response := range this.responseQueue {
|
||||
log.Info("Response: alert %d returned %s", response.id, response.state)
|
||||
this.jobs[response.id].running = false
|
||||
if this.jobs[response.id] != nil {
|
||||
this.jobs[response.id].running = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user