fix idlewatcher nil dereference

This commit is contained in:
yusing
2025-01-01 14:25:44 +08:00
parent 89f08f0da7
commit a0a81240ce
2 changed files with 8 additions and 8 deletions

View File

@@ -16,9 +16,11 @@ var ErrProgramExiting = errors.New("program exiting")
var logger = logging.With().Str("module", "task").Logger()
var root = newRoot()
var allTasks = F.NewSet[*Task]()
var allTasksWg sync.WaitGroup
var (
root = newRoot()
allTasks = F.NewSet[*Task]()
allTasksWg sync.WaitGroup
)
func testCleanup() {
root = newRoot()