kopia lustrzana https://github.com/cyoung/stratux
modify comment, update gitignore file
rodzic
73dd2d7025
commit
6aed4e1cb2
|
@ -1,4 +1,5 @@
|
|||
.idea/
|
||||
.vscode/
|
||||
dump978/extract_nexrad
|
||||
dump978/uat2esnt
|
||||
dump978/uat2json
|
||||
|
|
13
main/sdr.go
13
main/sdr.go
|
@ -416,13 +416,12 @@ func configDevices(count int, es_enabled, uat_enabled bool) {
|
|||
}
|
||||
}
|
||||
|
||||
// chicken and egg - to gracefully shut down a read method we
|
||||
// check a channel for a close flag, but now we want to handle
|
||||
// catastrophic dongle failures (when ReadSync returns an error
|
||||
// or we get stderr ouput) but we can't just bypass the channel
|
||||
// check and return directly from a goroutine because the close
|
||||
// channel call in the shutdown method will cause a runtime panic,
|
||||
// hence these...
|
||||
// to gracefully shut down a read method we check a channel for
|
||||
// a close flag, but now we want to handle catastrophic dongle
|
||||
// failures (when ReadSync returns an error or we get stderr
|
||||
// ouput) but we can't just bypass the channel check and return
|
||||
// directly from a goroutine because the close channel call in
|
||||
// the shutdown method will cause a runtime panic, hence these...
|
||||
var shutdownES bool
|
||||
var shutdownUAT bool
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue