mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-08-29 04:16:39 +00:00
fix: task cancellation
This commit is contained in:
@@ -29,6 +29,7 @@ func (t *taskQueue) Push(tasks ...scheduledTask) {
|
||||
defer t.mu.Unlock()
|
||||
|
||||
for _, task := range tasks {
|
||||
task := task
|
||||
if task.task == nil {
|
||||
panic("task cannot be nil")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user