Merge pull request #2558 from grafana/bugfix/unlock-mutex
Dispatch: Make sure mutex gets unlocked on call to Stop
This commit is contained in:
commit
88f32c5926
|
@ -259,6 +259,7 @@ func (d *Dispatcher) Stop() {
|
|||
}
|
||||
d.mtx.Lock()
|
||||
if d.cancel == nil {
|
||||
d.mtx.Unlock()
|
||||
return
|
||||
}
|
||||
d.cancel()
|
||||
|
|
Loading…
Reference in New Issue