We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f2c7a1 commit bc032f1Copy full SHA for bc032f1
internal/arduino/builder/internal/detector/detector.go
@@ -288,7 +288,11 @@ func (l *SketchLibrariesDetector) findIncludes(
288
}
289
290
291
- defer l.preRunner.Cancel()
+ defer func() {
292
+ if l.preRunner != nil {
293
+ l.preRunner.Cancel()
294
+ }
295
+ }()
296
297
l.addIncludeFolder(buildCorePath)
298
if buildVariantPath != nil {
@@ -430,9 +434,8 @@ func (l *SketchLibrariesDetector) findMissingIncludesInCompilationUnit(
430
434
431
435
// Stop the pre-runner
432
436
if l.preRunner != nil {
433
- preRunner := l.preRunner
437
438
l.preRunner = nil
- go preRunner.Cancel()
439
440
441
// Run the actual preprocessor
0 commit comments