File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -462,6 +462,9 @@ func (d *Device) Stop() {
462
462
close (d .speedRefreshChan )
463
463
}
464
464
}
465
+ if d .queue != nil {
466
+ close (d .queue )
467
+ }
465
468
})
466
469
}()
467
470
@@ -522,6 +525,9 @@ func (d *Device) StopDirty() uint8 {
522
525
close (d .speedRefreshChan )
523
526
}
524
527
}
528
+ if d .queue != nil {
529
+ close (d .queue )
530
+ }
525
531
})
526
532
}()
527
533
Original file line number Diff line number Diff line change @@ -316,6 +316,9 @@ func (d *Device) Stop() {
316
316
if d .autoRefreshChan != nil {
317
317
close (d .autoRefreshChan )
318
318
}
319
+ if d .queue != nil {
320
+ close (d .queue )
321
+ }
319
322
})
320
323
}()
321
324
@@ -350,6 +353,9 @@ func (d *Device) StopDirty() uint8 {
350
353
if d .autoRefreshChan != nil {
351
354
close (d .autoRefreshChan )
352
355
}
356
+ if d .queue != nil {
357
+ close (d .queue )
358
+ }
353
359
})
354
360
}()
355
361
logger .Log (logger.Fields {"serial" : d .Serial , "product" : d .Product }).Info ("Device stopped" )
Original file line number Diff line number Diff line change @@ -263,6 +263,9 @@ func (d *Device) Stop() {
263
263
if d .autoRefreshChan != nil {
264
264
close (d .autoRefreshChan )
265
265
}
266
+ if d .queue != nil {
267
+ close (d .queue )
268
+ }
266
269
})
267
270
}()
268
271
You can’t perform that action at this time.
0 commit comments