Skip to content

Commit

Permalink
Fix panic during network error in vsphere input (influxdata#4765)
Browse files Browse the repository at this point in the history
  • Loading branch information
prydin authored and rgitzel committed Oct 17, 2018
1 parent 9411d64 commit 344139c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/vsphere/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ func (e *Endpoint) collectResource(ctx context.Context, resourceType string, acc
err := make(multiError, 0)
wp.Drain(ctx, func(ctx context.Context, in interface{}) bool {
if in != nil {
mux.Unlock()
mux.Lock()
defer mux.Unlock()
err = append(err, in.(error))
return false
Expand Down

0 comments on commit 344139c

Please sign in to comment.