Skip to content

Commit 1779d49

Browse files
committed
Close bonjour channel when finished
Former-commit-id: 10d3624f27a68d6c916d3e971ea9d5c9e4589342 [formerly 9f17295b3f89cf113b44a9d1514555d93194a1cc] Former-commit-id: bd663ccc1fa99a02e8bb78a7adc70ea2991872e0
1 parent 222c2b5 commit 1779d49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

discovery.go

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ func GetNetworkList() ([]OsSerialPort, error) {
7474
// wait for some kind of timeout and return arrPorts
7575
select {
7676
case <-timeout:
77+
close(results)
7778
return arrPorts, nil
7879
}
7980
}

0 commit comments

Comments
 (0)