Re: [go-nuts] Re: [Help] Seeing an occasional data race on a closed channel

2017-04-25 Thread Owen Waller
Hi David, Ah ha, magic. And all fixed. Sometimes another pair of eyes is all that is required. While I had no doubt the race detector was correct in reporting the race the key line in the reply was "The only goroutine that can safely close a channel is the one that is writing to it." After that ev

[go-nuts] Re: [Help] Seeing an occasional data race on a closed channel

2017-04-24 Thread dwahler
Hi Owen, On Monday, April 24, 2017 at 1:23:58 PM UTC-5, Owen Waller wrote: > > My understanding is that when a key is pressed that will terminate the > program. This closes the quit channel, which causes the deferred > closeChans() to be called. That in turn closes the done and the bus > chann