Skip to content
Snippets Groups Projects
Commit 41d4394a authored by Travis Ralston's avatar Travis Ralston
Browse files

Reduce chances of deadlock in the scheduler

parent 12dc5994
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ func executeEnable() { ...@@ -26,7 +26,7 @@ func executeEnable() {
if notiferCh != nil { if notiferCh != nil {
go func() { go func() {
for val := range notiferCh { for val := range notiferCh {
tryBeginTask(int(val), true) go tryBeginTask(int(val), true)
} }
notiferCh = nil notiferCh = nil
}() }()
......
...@@ -124,7 +124,7 @@ func scheduleUnfinished() { ...@@ -124,7 +124,7 @@ func scheduleUnfinished() {
return return
} }
for _, task := range tasks { for _, task := range tasks {
beginTask(task) go beginTask(task)
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment