Skip to content

Commit

Permalink
Merge pull request getlantern#2983 from getlantern/issue2981
Browse files Browse the repository at this point in the history
Data race in handler.go error variable itself closes #2981
  • Loading branch information
uaalto committed Aug 19, 2015
2 parents e988fa7 + 139f3ad commit d4c4f99
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/github.com/getlantern/flashlight/client/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@ func (client *Client) intercept(resp http.ResponseWriter, req *http.Request) {
// established yet, to avoid timeouts on the client application
success := make(chan bool, 1)
go func() {
err = respondOK(clientConn, req)
if err != nil {
log.Errorf("Unable to respond OK: %s", err)
if e := respondOK(clientConn, req); e != nil {
log.Errorf("Unable to respond OK: %s", e)
success <- false
return
}
Expand Down

0 comments on commit d4c4f99

Please sign in to comment.