Closing channel when http server dies

Fixing deadlock on error
This commit is contained in:
Frederick F. Kautz IV
2015-01-18 16:59:23 -08:00
parent 3f03ce7334
commit 2ede0bff52
2 changed files with 2 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ func Start() {
cases := createSelectCases(statusChans)
for {
for len(cases) > 0 {
chosen, value, recvOk := reflect.Select(cases)
if recvOk == true {
// Status Message Received