Skip to content

Commit 111c1a8

Browse files
committed
Cached ports are now reset on discovery stop
1 parent d1316e0 commit 111c1a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino/discovery/discovery.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ func (disc *PluggableDiscovery) Stop() error {
342342
}
343343
disc.statusMutex.Lock()
344344
defer disc.statusMutex.Unlock()
345-
// TODO: Should we clear cached ports here?
345+
disc.cachedPorts = map[string]*Port{}
346346
if disc.eventChan != nil {
347347
close(disc.eventChan)
348348
disc.eventChan = nil

0 commit comments

Comments
 (0)