From 3640db423086b5a0318023749f1de2ef054d781b Mon Sep 17 00:00:00 2001 From: Joseph Poirier Date: Wed, 2 Mar 2016 23:05:52 -0600 Subject: [PATCH] sdr: comment reflects behavior --- main/sdr.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/main/sdr.go b/main/sdr.go index beef2104..3f46d3fa 100644 --- a/main/sdr.go +++ b/main/sdr.go @@ -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 -// 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 keep our sync primitives synchronized, only exit a read +// method's goroutine via the close flag channel check, to +// include catastrophic dongle failures var shutdownES bool var shutdownUAT bool