Refactor WorkerCtx to use a boolean for isStopWorker
This commit is contained in:
@@ -81,7 +81,7 @@ func (m *Manager) hasStopWorker() bool {
|
||||
if w == nil {
|
||||
continue
|
||||
}
|
||||
if w.isStopWorker.Load() {
|
||||
if w.isStopWorker {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user