Skip to content

Commit

Permalink
Fix redispatch queue nil pointer exception (#3156)
Browse files Browse the repository at this point in the history
  • Loading branch information
yycptt authored Mar 31, 2020
1 parent 5a1f8d3 commit 9b02fec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions service/history/queueProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ func (p *queueProcessorBase) submitTask(
}

func (p *queueProcessorBase) redispatchTasks() {
if !p.isPriorityTaskProcessorEnabled() {
return
}

redispatchQueueTasks(
p.redispatchQueue,
p.queueTaskProcessor,
Expand Down
4 changes: 4 additions & 0 deletions service/history/timerQueueProcessorBase.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ func (t *timerQueueProcessorBase) submitTask(
}

func (t *timerQueueProcessorBase) redispatchTasks() {
if !t.isPriorityTaskProcessorEnabled() {
return
}

redispatchQueueTasks(
t.redispatchQueue,
t.queueTaskProcessor,
Expand Down

0 comments on commit 9b02fec

Please sign in to comment.