kopia lustrzana https://github.com/cyoung/stratux
commit
bf0efb18de
|
@ -423,12 +423,9 @@ func configDevices(count int, es_enabled, uat_enabled bool) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// to gracefully shut down a read method we check a channel for
|
// to keep our sync primitives synchronized, only exit a read
|
||||||
// a close flag, but now we want to handle catastrophic dongle
|
// method's goroutine via the close flag channel check, to
|
||||||
// failures (when ReadSync returns an error or we get stderr
|
// include catastrophic dongle failures
|
||||||
// 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 shutdownES bool
|
||||||
var shutdownUAT bool
|
var shutdownUAT bool
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue