diff --git a/dispatch/dispatch.go b/dispatch/dispatch.go index b030046d..d62e0b8d 100644 --- a/dispatch/dispatch.go +++ b/dispatch/dispatch.go @@ -259,6 +259,7 @@ func (d *Dispatcher) Stop() { } d.mtx.Lock() if d.cancel == nil { + d.mtx.Unlock() return } d.cancel()