Skip to content

Commit

Permalink
Merge pull request #28 from Nitro/return-from-watchHandler
Browse files Browse the repository at this point in the history
Explicit return from watchHandler
  • Loading branch information
relistan authored Mar 6, 2017
2 parents bb2bd27 + 62e50df commit 7d5f815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func watchHandler(response http.ResponseWriter, req *http.Request, list *memberl
for {
select {
case <-notify:
break
return

case <-listener.Chan():
jsonBytes, err = json.Marshal(state.ByService())
Expand Down

0 comments on commit 7d5f815

Please sign in to comment.