Skip to content

Commit

Permalink
fix panic
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Lombardi committed Apr 18, 2024
1 parent 0878552 commit 4cf530d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/abstractions/taskqueue/taskqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ func (tq *RedisTaskQueue) TaskQueueMonitor(req *pb.TaskQueueMonitorRequest, stre
return

case msg := <-messages:
if msg.Payload == task.ExternalId {
if msg != nil && task != nil && msg.Payload == task.ExternalId {
cancelFlag <- true
return
}
Expand Down

0 comments on commit 4cf530d

Please sign in to comment.