Merge pull request #2558 from grafana/bugfix/unlock-mutex

Dispatch: Make sure mutex gets unlocked on call to Stop
This commit is contained in:
Björn Rabenstein 2021-04-27 22:40:36 +02:00 committed by GitHub
commit 88f32c5926
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -259,6 +259,7 @@ func (d *Dispatcher) Stop() {
}
d.mtx.Lock()
if d.cancel == nil {
d.mtx.Unlock()
return
}
d.cancel()