~edwargix/tallyard

b4b48686e1f48847e8c341fcb1dc7337afb8a983 — David Florness 5 years ago cae8c9e
Don't close the close channel

Closing it causing anyone reading to yield zero.
1 files changed, 0 insertions(+), 1 deletions(-)

M voter.go
M voter.go => voter.go +0 -1
@@ 97,7 97,6 @@ func handleCmd(cmd string, rw *bufio.ReadWriter, stream network.Stream) {
			panic(err)
		}
		election.close <- numPeers
		close(election.close)
		election.closed = true
	case "shake":
		election.Lock()